Strange Behavior

Fredrik Lundh fredrik at pythonware.com
Mon Oct 16 19:28:15 CEST 2006


Carsten Haese wrote:

> I think this statement needs to be clarified. The binding of "data" to
> the empty list *does* happen at runtime, not at compile time. However,
> the binding happens only once, when the "def" statement is executed, as
> opposed to every time the __init__ function is called.

to be precise, it happens every time the "def" statement is executed.

</F>




More information about the Python-list mailing list