Message 211084 - Python tracker

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.

Content
> It is possible that adding flush=True in print() will solve the issue.

I tried. It does not fix the issue.

Hint: On Windows, sys.stdout.encoding is a codec implemented in pure Python (ex: cp850). You should try to reproduce the issue on Linux using PYTHONIOENCODING=cp850.

Note: It looks like open() is no more available when C.__del__() is called.