I was just pleasantly surprised to came across the documentation of Python\'s compiler package, but noticed that it\'s gone in Python 3.0, without any clear replacement or e
For what it's worth, I started a port of the compiler
package to Python3: https://github.com/pfalcon/python-compiler . At the time of writing, it generates bytecode compatible with CPython3.5, and can compiler entire standard library of that version.
To provide specific references to the decision trail:
And, for what it's worth, I started Python3 port of the compiler package, to be maintained outside of the stdlib:
I believe the functionality is now built in: