[issue27238] Bare except: usages in turtle.py
Brett Cannon
report at bugs.python.org
Mon Jun 6 17:41:56 EDT 2016
Brett Cannon added the comment:
__file__ could be None if __spec__.origin is None. The import machinery doesn't introspect on __file__ for anything, so it won't break import if __file__ has alternative values. In general, though, normal imports will set __file__ to a string.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27238>
_______________________________________
More information about the Python-bugs-list
mailing list