Steven D'Aprano <[EMAIL PROTECTED]> wrote:

> On Sun, 15 Apr 2007 05:29:01 +0200, BJörn Lindqvist wrote:
> 
> >> This comes up so often that I wonder whether Python should issue a warning
> >> when it sees [] or {} as a default argument.
> >>
> >>
> >> What do people think? A misuse or good use of warnings?
> > 
> > I think Python should reevaluate the default values.
> 
> That would break code that relies on the current behaviour. That makes it
> a "maybe" for Python 3.0, and an absolute "NO!!!" for Python 2.x.

If you hope to get any change in Python 3.0, your PEP had better be in
before the end of April -- that's the 3.0 deadline for PEPs.


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

Reply via email to