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 vstinner
Recipients Tianjg, ZackerySpytz, eryksun, ezio.melotti, izbyshev, paul.moore, steve.dower, tianjg, tim.golden, vstinner, zach.ware
Date 2020-12-04.16:39:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I can reproduce the issue on Python 3.10 with a script called 北京市.py which contains: print("hello").

c:\> python 北京市.py

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
Date User Action Args
2020-12-04 16:39:38vstinnersetrecipients: + vstinner, paul.moore, tim.golden, ezio.melotti, zach.ware, eryksun, steve.dower, izbyshev, ZackerySpytz, Tianjg, tianjg
2020-12-04 16:39:38vstinnersetmessageid: <>
2020-12-04 16:39:38vstinnerlinkissue32381 messages
2020-12-04 16:39:38vstinnercreate