On Fri, Oct 10, 2008 at 4:36 AM, <[EMAIL PROTECTED]> wrote: > Bruno Desthuilliers: >> You mean : "to people that don't bother reading the FineManual *nor* >> searching the newsgroup / ML archives ?" > > Are there ways to change how Python3 manages arguments and functions, > to remove this antifeature of Python, avoiding this common mistake > done by every newbie? > I don't care if it reduces the performance of Python a little.
The general idea been discussed ad-nauseum on the list several times before, including just 2 months ago. See e.g.: [Python-3000] default argument surprises http://mail.python.org/pipermail/python-3000/2008-August/014658.html [Python-ideas] proto-PEP: Fixing Non-constant Default Arguments http://mail.python.org/pipermail/python-ideas/2007-January/000121.html [Python-3000] pre-PEP: Default Argument Expressions http://mail.python.org/pipermail/python-3000/2007-February/005704.html Cheers, Chris -- Follow the path of the Iguana... http://rebertia.com > > Bye, > bearophile > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list