mutable default parameter problem [Prothon]

David Bolen db3l at fitlinxx.com
Wed Jun 16 20:24:47 EDT 2004


Andrea Griffini <agriff at tin.it> writes:

> But if there are those better-looking statics, why so
> much use of that modifiable-default-of-a-fake-parameter
> ugly trick ? Is this something that became legal
> only recently ?

Function attributes were in fact somewhat recently added (as of Python
2.1, so circa April of 2001).

-- David



More information about the Python-list mailing list