Message301050
The following code causes an assertion failure in get_encoded_name(), which is called by _PyImport_LoadDynamicModuleWithSpec() (in Python/importdl.c): import imp class BadSpec: name = 42 origin = 'foo' imp.create_dynamic(BadSpec()) this is because _PyImport_LoadDynamicModuleWithSpec() assumes that spec.name is a string. should we fix this (even though imp is deprecated)? | |
| Date | User | Action | Args | | 2017-08-31 16:25:55 | Oren Milman | set | recipients: + Oren Milman | | 2017-08-31 16:25:55 | Oren Milman | set | messageid: <1504196755.68.0.337811894425.issue31315@psf.upfronthosting.co.za> | | 2017-08-31 16:25:55 | Oren Milman | link | issue31315 messages | | 2017-08-31 16:25:55 | Oren Milman | create | | |