python-compiler.old icon indicating copy to clipboard operation
python-compiler.old copied to clipboard

Python2 compiler package ported to Python3. Compiles Python AST (as produced by the "ast" module) to bytecode assembly and code objects.

Results 7 python-compiler.old issues
Sort by recently updated
recently updated
newest added

Hi @pfalcon, Do you have plans to support Python 3.6? What can people do to help? Cheers.

Currently, it definitely doesn't work correctly. The implementation looks over-engineered - it seems to attempt to implement dataflow analysis over arbitrary CFG, which is absolutely great if it's implemented correctly...

Currently, dumping co_flags when comparing CPython vs python-compiler compilation results is disabled. Indeed, "async func" flag is definitely not handled, and probably other flags aren't dealt right with too.

The project has some dead code. That's definitely true with my refactorings, but probably was true even with code as was in CPython2. Also, non-canonical use of constructors, etc. is...

I have various debugging hacks in my local repo, but too shy to merge them in, for the fear of making code quality worse. So, think and plan how to...

The original code didn't have enough power to handle modern Python, and was patched by me in more or less adhoc way. And test_super.py still excluded from testing, because handling...

Currently, comparing results of CPython compilation requires a custom build of CPython3.5 with peephole optimizer disabled. It would be nice to implement peephole optimization pass in python-compiler, to be able...