Please explain this strange Python behaviour

Diez B. Roggisch deets at nospam.web.de
Thu Apr 30 13:33:16 CEST 2009


Train Bwister wrote:

> Please explain: http://python.pastebin.com/m401cf94d
> 
> IMHO this behaviour is anything but the usual straight forward and
> obvious way of Python.
> 
> Can you please point out the benefits of this behaviour?

http://effbot.org/pyfaq/why-are-default-values-shared-between-objects.htm

Diez



More information about the Python-list mailing list