Bizarre behavior with mutable default arguments
Istvan Albert
istvan.albert at gmail.com
Sat Dec 29 13:17:29 EST 2007
More information about the Python-list mailing list
Sat Dec 29 13:17:29 EST 2007
- Previous message (by thread): Bizarre behavior with mutable default arguments
- Next message (by thread): Bizarre behavior with mutable default arguments
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): Bizarre behavior with mutable default arguments
- Next message (by thread): Bizarre behavior with mutable default arguments
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list