py_compile — Compile Python source files — Python 3.16.0a0 documentation

docs.python.org

Tin mới

pyclbr — Python module browser support

compileall — Byte-compile Python libraries

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Python Language Services

importlib: The implementation of the import machinery.

Changed in version 3.4: Changed code to use importlib for the byte-code cache file writing. This means file creation/writing semantics now match what importlib does, e.g. permissions, write-and-move semantics, etc. Also

Cached bytecode invalidation

An enumeration of possible methods the interpreter can use to determine whether a bytecode file is up to date with a source file. The .pyc file indicates the desired invalidation mode in its header. See Cached bytecode i