-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
futurize "Stage 2" docs seem outdated #477
Comments
Also, the docs say these are the Stage 2 fixers:
However, the current CLI says:
Here's a diff of the docs to the CLI: 1d0
< lib2to3.fixes.fix_basestring
3d1
< lib2to3.fixes.fix_exec
10a9
> lib2to3.fixes.fix_next
14a14
> libfuturize.fixes.fix_basestring
16c16
< libfuturize.fixes.fix_division
---
> libfuturize.fixes.fix_division_safe |
I am encountering the same problem. The converted code has different semantics, i.e. it allocates a list now instead of iterating over the values (in py2). This is going to make it quite difficult to use this tool for me. |
By the way, I have installation (Ubuntu 18.04 and $ python3-futurize -l | grep next
lib2to3.fixes.fix_next
libfuturize.fixes.fix_next_call I have some code for which |
Thanks for reporting, will update the docs soon |
I believe this is fixed in latest docs, just not published. Close in favor of #511 so we have one single place to track. |
At http://python-future.org/automatic_conversion.html#stage-2-py3-style-code-with-wrappers-for-py2
Given
test_stage2.py
:Expected from
futurize --stage2 test_stage2.py
:Actual:
The text was updated successfully, but these errors were encountered: