[Python-Dev] SVN rev. 85392 broke module handling in py3k

Benjamin Peterson benjamin at python.org
Fri Oct 22 16:43:56 CEST 2010


2010/10/22 Stefan Behnel <stefan_ml at behnel.de>:
> Benjamin Peterson, 22.10.2010 16:17:
>> What about 3.1.0 then?
>
> The 3.1.2 release was fine, but the current 3.1 SVN branch is not. I assume
> you have applied the change there, too?

Yes. Unfortunately, this behavior is more "correct" for most cases
because it results in module globals being finalized.

You could run 2to3 in a subprocess or hang onto modules you to keep
the globals of while you're using them.


-- 
Regards,
Benjamin


More information about the Python-Dev mailing list