Bizarre behavior with mutable default arguments

John Machin sjmachin at lexicon.net
Sun Dec 30 00:17:27 EST 2007


On Dec 30, 3:21 pm, bukzor <workithar... at gmail.com> wrote:
> Just for completeness, the mutable default value problem also affects
> classes:

Simply, because methods are functions, and can have default arguments.
You don't need to nail *another* zillion theses to the cathedral
door :-)



More information about the Python-list mailing list