
The bytecode module can be used to write Python bytecode directly and then convert it into an executable Python code object. It also provides a pure Python implementation of the Peephole Optimizer introduced in CPython 3.6.
This module is patched to be compatible with python3-pydevd, but this should be transparent to other users.