This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients brett.cannon, dgreiman, eric.smith, orsenthil, ztane
Date 2016-12-10.19:53:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481399628.92.0.052770177873.issue28425@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-12-10 19:53:49brett.cannonsetrecipients: + brett.cannon, orsenthil, eric.smith, dgreiman, ztane
2016-12-10 19:53:48brett.cannonsetmessageid: <1481399628.92.0.052770177873.issue28425@psf.upfronthosting.co.za>
2016-12-10 19:53:48brett.cannonlinkissue28425 messages
2016-12-10 19:53:48brett.cannoncreate