[issue31315] assertion failure in imp.create_dynamic(), when spec.name is not a string

Brett Cannon report at bugs.python.org
Thu Aug 31 16:45:09 EDT 2017


Brett Cannon added the comment:

Yes, I'm saying that instead of hitting the C-level assertion error an explicit TypeError should be raised (or some other change like calling str() on the object). Either way, a C-level assertion from valid Python code is bad. :)

----------

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


More information about the Python-bugs-list mailing list