.py
to .pyc
bytecode for interpreter
Ahead-Of-Time compile
When is it actually useful?
- Pre-validating compile errors before CI/CD deployment
- Distributing only
.pyc
files in restricted environments (though pip wheels can also accomplish this)
- Note that
.pyc
files can be easily decompiled, making them unsuitable as a complete source code protection measure