Bizarre behavior with mutable default arguments
Istvan Albert
istvan.albert at gmail.com
Sat Dec 29 13:17:29 EST 2007
On Dec 29, 12:50 pm, bukzor <workithar... at gmail.com> wrote:
> Is this functionality intended? It seems very unintuitive. This has
> caused a bug in my programs twice so far, and both times I was
> completely mystified until I realized that the default value was
> changing.
it is only unintuitive when you do not know about it
once you realize how it works and what it does it can actually be very
useful
i.
More information about the Python-list
mailing list