[issue1717900] Destructor behavior faulty

2009-03-31 Thread Antoine Pitrou
Antoine Pitrou 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

[issue1717900] Destructor behavior faulty

2009-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Armin's proposal is in #812369, closing this bug. (it is not obvious Armin's patch is enough to solve the problem at hand, but the problem is well-known anyway and there are certainly other bug entries pointing to it :-)) -- nosy: +pitrou resolution: -

[issue1717900] Destructor behavior faulty

2009-03-30 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed type: -> behavior versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___