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

Futurize for Python 2 & 3 support #38

Closed
wants to merge 1 commit into from

Conversation

joshmoore
Copy link

Using the futurize command:

futurize -w datareader.py

this file runs (untested) under Python 3:

python datareader.py
usage: <movie>

This requires having the future module installed at runtime. So far this PR only applies futurize to datareader.py for working with @mengzhang1003 during SpaceJam. Running it across more of the codebase could be done either in this PR or as a follow. More important is the general choice of strategy for supporting Python 3 at runtime.

see:

Using the `futurize` command:

```
futurize -w datareader.py
```

this file runs (untested) under Python 3:

```
python datareader.py
usage: <movie>
```

This requires having the `future` module installed
at runtime.

see:
 - https://python-future.org/compatible_idioms.html
 - https://docs.python.org/3/howto/pyporting.html
@joshmoore
Copy link
Author

This looks both wrong and unneeded. Closing and if @mengzhang1003 and I run into any concrete blockers while using python3 I'll raise them.

@joshmoore joshmoore closed this Apr 23, 2019
@HazenBabcock
Copy link
Member

HazenBabcock commented Apr 23, 2019

Okay, I do appreciate the extra eyes. I think the Python 3 support is solid though as I use this all the time with Python 3.6, and most of the project is routinely tested in Python 3 by both travis-ci and appveyor. If you do find anything that doesn't work in Python 3 please let me know.

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

Successfully merging this pull request may close these issues.

2 participants