Nick Coghlan <ncogh...@gmail.com> added the comment:

Pretty much anything mentioned in PEP 302 is what is being protected.

The one which causes most of the grief is the fact that we need to stick a 
partially initialised module into sys.modules (so the module can find itself if 
it needs to), then take it out again if execution of the module level code 
fails. That means we need to hold the import lock while the module code is 
executed.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8098>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to