[Python-Dev] module shutdown procedure
Neil Schemenauer
nas at arctrix.com
Fri Jul 23 05:15:08 CEST 2010
Georg Brandl <g.brandl at gmx.net> wrote:
> Am 22.07.2010 13:29, schrieb Antoine Pitrou:
>> Is it the reason why? With the new module creation API in 3.x, extension
>> modules should be able to handle deletion of their own internal
>> resources.
>
> Yes, but as Martin noted at the summit, nobody since went through all the
> extension modules and changed them to use a struct instead of globals.
And that's a necessary but likely not sufficient condition for the
GC based module shutdown scheme to work. It really would take a
huge amount of effort to make the idea fly.
That doesn't mean it is not worth doing. The current scheme is
pretty ugly.
Neil
More information about the Python-Dev
mailing list