[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

STINNER Victor report at bugs.python.org
Fri Dec 4 11:39:38 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

I can reproduce the issue on Python 3.10 with a script called 北京市.py which contains: print("hello").

c:\> python 北京市.py
hello

c:\>python __pycache__\北京市.cpython-310.pyc
python: Can't reopen .pyc file

And with my PR 23642 fix, it works as expected:

C:\>python __pycache__\北京市.cpython-310.pyc
hello

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32381>
_______________________________________


More information about the Python-bugs-list mailing list