[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:  -> duplicate
status: open -> closed
superseder:  -> module shutdown procedure based on GC

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com