[issue28425] Python3 ignores __init__.py that are links to /dev/null

Brett Cannon report at bugs.python.org
Sat Dec 10 14:53:48 EST 2016


Brett Cannon added the comment:

Those results are expected as passing in a file by path means it's just read by open() and then passed to exec() while the others pass through import itself which has the os.path.isfile() check.

Since this is a change from Python 2.7 I would be willing to look at a patch that loosened things that was fully backwards-compatible, but it would be an enhancement and not a bugfix.

----------

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


More information about the Python-bugs-list mailing list