[Python-Dev] Better module shutdown procedure
Neil Schemenauer
nas at arctrix.com
Wed Oct 14 22:16:35 CEST 2009
More information about the Python-Dev mailing list
Wed Oct 14 22:16:35 CEST 2009
- Previous message: [Python-Dev] [python-committers] On track for Python 2.6.4 final this Sunday?
- Next message: [Python-Dev] Better module shutdown procedure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The current shutdown code in pythonrun.c zaps module globals by setting them to None (an attempt to break reference cycles). That causes problems since __del__ methods can try to use the globals after they have been set to None. The procedure implemented by http://bugs.python.org/issue812369 seems to be a better idea. References to modules are replaced by weak references and the GC is allowed to cleanup reference cycles. I would like to commit this change but I'm not sure if it is a good time in the development cycle or if anyone has objections to the idea. Please speak up if you have input. Neil
- Previous message: [Python-Dev] [python-committers] On track for Python 2.6.4 final this Sunday?
- Next message: [Python-Dev] Better module shutdown procedure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list