Skip to content
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

Remove __future__ imports once Python 3 conversion is complete #153

Open
nrejac opened this issue Apr 6, 2021 · 1 comment
Open

Remove __future__ imports once Python 3 conversion is complete #153

nrejac opened this issue Apr 6, 2021 · 1 comment
Labels
python2 python3 for issues specific to python3 conversion

Comments

@nrejac
Copy link
Contributor

nrejac commented Apr 6, 2021

Given that Python 2.x will not be supported in the future, we expect the released version of idb-backend for Python 3 to use standard Python 3 behavior: print is a function, integer division can return floats, absolute imports are allowed, etc.

For simplicity, we can then remove future imports that enable Python 3 behavior under prior versions of the Python interpreter and the Python interpreter will continue use standard Python 3 behavior. The code will not run successfully on Python 2.

@nrejac nrejac added python3 for issues specific to python3 conversion python2 labels Apr 6, 2021
@danstoner
Copy link
Contributor

I generally agree with the sentiment.

https://stackoverflow.com/a/53831042

We will need to make sure we are only removing the python 2 futures (most likely).

Also in that SO article... barry_as_FLUFL!

https://www.python.org/dev/peps/pep-0401/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python2 python3 for issues specific to python3 conversion
Projects
None yet
Development

No branches or pull requests

2 participants