Message303166
| Author | Oren Milman |
|---|---|
| Recipients | Oren Milman |
| Date | 2017-09-27.17:44:13 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1506534254.01.0.154975027568.issue31531@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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__.py'] = tuple(tup_as_list)
importer.load_module('foo')
This could be fixed by checking in get_code_from_data() whether modpath is a string. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-09-27 17:44:14 | Oren Milman | set | recipients: + Oren Milman |
| 2017-09-27 17:44:14 | Oren Milman | set | messageid: <1506534254.01.0.154975027568.issue31531@psf.upfronthosting.co.za> |
| 2017-09-27 17:44:14 | Oren Milman | link | issue31531 messages |
| 2017-09-27 17:44:13 | Oren Milman | create | |