Bizarre behavior with mutable default arguments

"Martin v. Löwis" martin at v.loewis.de
Sat Dec 29 13:11:44 EST 2007


> Is this functionality intended?

Google for "Python mutable default arguments" (you can actually
leave out Python).

It's part of the language semantics, yes.

Regards,
Martin



More information about the Python-list mailing list