Fredrik Lundh wrote:

default argument values are evaluated when the function object is created (by the "def" statement, that is), not when the resulting function is called. if you mutate the default values, the mutations will stick.

and yes, workarounds and further details are provided here:

    http://effbot.org/zone/default-values.htm

</F>

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to