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 <rep...@bugs.python.org>
<http://bugs.python.org/issue28425>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to