On Mar 7, 10:24 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote:
> John Nagle <[EMAIL PROTECTED]> writes:
> >     True.  It would make sense to disallow mutable values as
> > initial values for optional arguments.  The present behavior is silly.
>
> That would be the worst of both worlds.  The main alternative to the
> present behavior is re-computing the default value every time the
> function is entered.

One can do this is today's Python if he's so inclined, albeit with a
more verbose syntax: 
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/502206

George

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to