Why is the compiler package discontinued in Python 3?

Question:

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 explanation.

I can’t seem to find any discussion on python-dev about how this decision was made – does anyone have any insight inot this decision?

Asked By: Andrey Fedorov

||

Answers:

I believe the functionality is now built in:

Answered By: Paul

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:

Answered By: pfalcon

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.

Answered By: pfalcon