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 christian.heimes
Recipients FFY00, christian.heimes, frenzy, hroncok
Date 2020-05-04.09:37:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588585078.6.0.777553045347.issue40495@roundup.psfhosted.org>
In-reply-to
Content
Python's import system is fully compatible with this approach.

importlib never directly writes to a .pyc file. Instead it always creates a new temporary file next to the .pyc file and then overrides the .pyc file with an atomic file system operation. See _write_atomic() in Lib/importlib/_bootstrap_external.py.

compileall and py_compile also use _write_atomic().
History
Date User Action Args
2020-05-04 09:37:58christian.heimessetrecipients: + christian.heimes, hroncok, frenzy, FFY00
2020-05-04 09:37:58christian.heimessetmessageid: <1588585078.6.0.777553045347.issue40495@roundup.psfhosted.org>
2020-05-04 09:37:58christian.heimeslinkissue40495 messages
2020-05-04 09:37:58christian.heimescreate