[issue1717900] Destructor behavior faulty
Antoine Pitrou
report at bugs.python.org
Tue Mar 31 15:17:19 CEST 2009
Antoine Pitrou <pitrou at free.fr> added the comment:
By the way, an easy way to fix it would probably to rewrite the
destructor in the following way (haven't tested):
def __del__(self):
self.__class__.population -= 1
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1717900>
_______________________________________
More information about the Python-bugs-list
mailing list