Serhiy Storchaka added the comment:
zipimport have been rewritten in pure Python (issue25711). All crashes are gone
with the C code.
--
nosy: +serhiy.storchaka
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracke
Oren Milman added the comment:
Yet another code that causes a SystemError:
import zipimport
importer = zipimport.zipimporter('foo.zip')
tup_as_list =
list(zipimport._zip_directory_cache['foo.zip']['foo\\__init__.py'])
tup_as_list[0] = None
zipimport._zip_directory_cache['foo.zip']['foo\\__init_
New submission from Oren Milman:
The following code causes the interpreter to crash (in case 'foo.zip' exists):
import zipimport
zipimport._zip_directory_cache['foo.zip'] = None
importer = zipimport.zipimporter('foo.zip')
importer.find_loader('bar')
This is because zipimport_zipimporter___init_