default value in __init__

Chris Rebert clp at
Fri Oct 10 19:24:53 CEST 2008

On Fri, Oct 10, 2008 at 4:36 AM,  <bearophileHUGS at> 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

[Python-ideas] proto-PEP: Fixing Non-constant Default Arguments

[Python-3000] pre-PEP: Default Argument Expressions

Follow the path of the Iguana...

> Bye,
> bearophile
> --

More information about the Python-list mailing list