[issue19081] zipimport behaves badly when the zip file changes while the process is running

Gregory P. Smith report at bugs.python.org
Sun Jan 26 21:36:05 CET 2014


Gregory P. Smith added the comment:

I refactored the unittests a bit and added another test for subimports when a directory within the .zip file is in sys.path as well.

The quizzical "wtf" TODO I had in the code has been "answered" in that I am unable to trigger a situation where path != buf and prefix is nonempty in that function.  I'm leaving that as a NOTE in the code for future investigation, but it isnt' related to this bug.  I cleaned up the code there regardless to refer to buf (guaranteed to be the path to the actual .zip file) rather than an odd mixture of path and buf.

----------
Added file: http://bugs.python.org/file33734/issue19081-subimport-fix-gps03.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19081>
_______________________________________


More information about the Python-bugs-list mailing list