classes and list as parameter, whats wrong?
Dirk Zimmermann
python-list at d1z1.de
Fri Aug 26 07:15:32 EDT 2005
Thanks for your help.
* James <spiralx at gmail.com> [2005-08-26 11:42]:
> No, the default paramter LL is only ever created once, not
> reinitialised every time the constructor is called - this is quite a
> common gotcha!
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)?
Thanks,
Dirk
More information about the Python-list
mailing list