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 eryksun
Recipients Jean-Louis Tamburini, brett.cannon, eric.snow, eryksun, ncoghlan, paul.moore, steve.dower, tim.golden, zach.ware
Date 2018-05-16.17:00:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526490004.64.0.682650639539.issue33451@psf.upfronthosting.co.za>
In-reply-to
Content
In Python/pythonrun.c, PyRun_SimpleFileExFlags() reopens the PYC file in binary mode, passes it to run_pyc_file(), and only closes it after executing the script. The file should instead be closed in run_pyc_file(), before calling PyEval_EvalCode().
History
Date User Action Args
2018-05-16 17:00:04eryksunsetrecipients: + eryksun, brett.cannon, paul.moore, ncoghlan, tim.golden, eric.snow, zach.ware, steve.dower, Jean-Louis Tamburini
2018-05-16 17:00:04eryksunsetmessageid: <1526490004.64.0.682650639539.issue33451@psf.upfronthosting.co.za>
2018-05-16 17:00:04eryksunlinkissue33451 messages
2018-05-16 17:00:04eryksuncreate