This is a well-known python gotcha. See: http://www.ferg.org/projects/python_gotchas.html#contents_item_6 -- http://mail.python.org/mailman/listinfo/python-list
- Re: Bizarre behavior with mutable default arg... George Sakkis
- Re: Bizarre behavior with mutable default... Istvan Albert
- Re: Bizarre behavior with mutable de... bukzor
- Re: Bizarre behavior with mutabl... Istvan Albert
- Re: Bizarre behavior with mutabl... Steven D'Aprano
- Re: Bizarre behavior with mutable default arguments Istvan Albert
- Re: Bizarre behavior with mutable default arguments Steven D'Aprano
- Re: Bizarre behavior with mutable default arguments StephenRFerg