This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Oren Milman
Recipients Oren Milman
Date 2017-08-31.16:25:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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'


this is because _PyImport_LoadDynamicModuleWithSpec() assumes that is
a string.

should we fix this (even though imp is deprecated)?
Date User Action Args
2017-08-31 16:25:55Oren Milmansetrecipients: + Oren Milman
2017-08-31 16:25:55Oren Milmansetmessageid: <>
2017-08-31 16:25:55Oren Milmanlinkissue31315 messages
2017-08-31 16:25:55Oren Milmancreate