Message368023
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(). |
|
Date |
User |
Action |
Args |
2020-05-04 09:37:58 | christian.heimes | set | recipients:
+ christian.heimes, hroncok, frenzy, FFY00 |
2020-05-04 09:37:58 | christian.heimes | set | messageid: <1588585078.6.0.777553045347.issue40495@roundup.psfhosted.org> |
2020-05-04 09:37:58 | christian.heimes | link | issue40495 messages |
2020-05-04 09:37:58 | christian.heimes | create | |
|