Re: [Paste] StackedObjectProxy and empty default values

Top Page
Author: Ian Bicking
Date:  
To: Jason Kirtland
CC: paste-users
Subject: Re: [Paste] StackedObjectProxy and empty default values
Thanks; applied in r6095

Jason Kirtland wrote:
> Attached is a patch to paste.registry.StackedObjectProxy that:
> proxies __nonzero__
> allows empty and False objects to be used as default values, including
> None
>
> The constructor behavior is changed slightly- if default= is provided,
> the value will be used as the default, including default=None. If
> default= is omitted, there will be no default and TypeError is raised as
> usual for an empty stack.



-- 
Ian Bicking | ianb@??? | http://blog.ianbicking.org

_______________________________________________
Paste-users mailing list
Paste-users@???
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users