[issue32932] better error message when __all__ contains non-str objects
Nick Coghlan
report at bugs.python.org
Sat Feb 24 20:34:03 EST 2018
Nick Coghlan <ncoghlan at gmail.com> added the comment:
I believe the original rationale for the `__path__` check was to restrict that branch to the case where we may need to import a not-yet-imported submodule in order to get the attribute set appropriately.
However, giving a better error message for __all__ in ordinary modules also seems like a good reason to follow that branch.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32932>
_______________________________________
More information about the Python-bugs-list
mailing list