On this page
py_compile.main
Prev: py_compile.compile | Up: py_compile | Next: py_compile.PycInvalidationMode
Rel: py_compile.compile, py_compile.PycInvalidationMode, py_compile.PyCompileError
Ref: docs.python.org — py_compile.main
Tags: #public #python3 #stdlib #py_compile
Import
import py_compile
from py_compile import main
Signature & Overview
py_compile.main()
py_compile.main() function.
Usage
import py_compile
# CLI entry point for `python3 -m py_compile file1.py file2.py`
assert callable(py_compile.main)
Gotchas
- For entire directory trees, prefer
python3 -m compileall.
REPL Inspect
from py_compile import main
help(main)
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/PycInvalidationMode 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