"Dirk Zimmermann" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> But still, it is not absolutely clear for me, what is going on. So, at
> least just for my understanding: The parameter LL is created just once
> for the whole class and not for the object (because I del the object
> explicitly, which should destroy the object)?

Default parameter values are created (once) for the function, not for the 
class or instance.  Function default parameter expressions are evaluated 
once and only once when the function is defined.  Code that you want 
evaluated with each call goes in the function body.

Terry J. Reedy



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

Reply via email to