py-backwards icon indicating copy to clipboard operation
py-backwards copied to clipboard

Python to python compiler that allows you to use Python 3.6 features in older versions.

Results 30 py-backwards issues
Sort by recently updated
recently updated
newest added

This is a bit closer to how the actual 3.6 implementation works

python 3.5 and 3.6 have made asynchronous code much more straightforward to write, and while there were some changes in the execution model, much code can run with just desugaring,...

enhancement
target: 3.4

eg options to disable str -> unicode and '' -> u'' conversions.

enhancement

`dbm` => `anydbm` `dbm.ndbm` => `dbm`

enhancement
target: 2.7
next release

https://pypi.python.org/pypi/enum34

target: 3.3

Snippets like: ``` @snippet def import_rewrite(previous, current): if __import__('six').PY2: extend(current) else: extend(previous) ``` Are failing with: ```python In [47]: import_rewrite.get_body(previous=[], current=[]) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) in ()...

bug
next release

We should define sources encoding if target is 2.7, like: ``` # -*- coding: utf-8 -*- ```

enhancement
target: 2.7
next release

Is it possible to use py-backwards from setup.py, so that we can write packages using the 3.6 syntax and 'automatically' compile the package for other Python versions when building the...

enhancement
needs confirmation

Could it be possible to install py-backwards as an import hook that automatically backwardsizes python files (with e.g. a special comment or file extension) on import? I know pytest does...

enhancement

It would be nice to support automatic recompilation of changed files with watchman.

enhancement