py_compile.PycInvalidationMode
Prev: py_compile.main | Up: py_compile | Next: py_compile.PyCompileError
Rel: py_compile.compile, py_compile.main, py_compile.PyCompileError
Ref: docs.python.org — py_compile.PycInvalidationMode
Tags: #public #python3 #stdlib #py_compile
Import
import py_compile
from py_compile import PycInvalidationMode
Signature & Overview
py_compile.PycInvalidationMode(*values)
py_compile.PycInvalidationMode class.
Usage
import py_compile
assert py_compile.PycInvalidationMode.CHECKED_HASH.value == 2
Gotchas
- Use
CHECKED_HASHfor reproducible container/wheel builds where file timestamps vary.
REPL Inspect
from py_compile import PycInvalidationMode
help(PycInvalidationMode)
Linked from
Related notes
- tuts/python3/stdlib_module/py_compile Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/py_compile/compile Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/py_compile/main Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/py_compile/PyCompileError Linked here; links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib
- tuts/c/stdlib/ctype/isalpha shared tags: #stdlib