[issue33451] Start pyc file lock the file
Eryk Sun
report at bugs.python.org
Wed May 16 13:00:04 EDT 2018
Eryk Sun <eryksun at gmail.com> added the comment:
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().
----------
nosy: +eryksun
versions: +Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33451>
_______________________________________
More information about the Python-bugs-list
mailing list