-
Notifications
You must be signed in to change notification settings - Fork 99
Python3 Strategy #47
Comments
We’ve discussed moving to py3 a couple of times in the past, but most of the world was still running on py2. Also, other components which Pyretic uses, particularly pox and mininet, are py2. With respect to the first, taking a look around, it seems like things are slowly changing---e.g., Ubuntu has made progress on making py3 their standard https://wiki.ubuntu.com/Python. With respect to the second, from a quick glance, it appears that running both py3 and py2 on the same machine is not as difficult as it once was. So, I think it would be reasonable to move to py3, though at the same time, I don’t see a pressing need to do so. So it should really be about what the community wants. Other folks, please jump in w/o your thoughts. -Josh From: James Guthrie [mailto:[email protected]] I am working on a port of pyretic to python3 for my own needs. Things are looking good so far, I am just wondering what your approach to supporting py2 and py3 is. I guess there's not much demand yet from pyretic users for py3 compatibility, so having py2 support may be a desired feature. It would probably be too much maintenance effort to develop simultaneously on py2 and py3 branches. I would suggest there are a two options to maintaining py2 and py3:
The porting that I have done for myself does not support py2 and py3 compatibility, but it would probably be possible to make it work. Py3 is not going anywhere and py2 will not progress past 2.7.x, so developing for py3 on master sort of matches current python development. My question is: is there any reason why moving forward with the master branch being py3 and having a py2 tag for "backwards compatibility" is a terrible idea? If so, it might be worth investing the effort in having a single py2 and py3 compatible codebase, otherwise I would prepare a pull request with the python3 changes. — |
Thanks for the response Josh. With regards to the dependencies:
I am not pushing for others to port pyretic to py3. Rather, I am wondering if a port is undertaken what the community would like to have, how many are tied to py2-only pyretic. |
I am working on a port of pyretic to python3 for my own needs. Things are looking good so far, I am just wondering what your approach to supporting py2 and py3 is.
I guess there's not much demand yet from pyretic users for py3 compatibility, so having py2 support may be a desired feature. It would probably be too much maintenance effort to develop simultaneously on py2 and py3 branches. I would suggest there are a two options to maintaining py2 and py3:
The porting that I have done for myself does not support py2 and py3 compatibility, but it would probably be possible to make it work. Py3 is not going anywhere and py2 will not progress past 2.7.x, so developing for py3 on master sort of matches current python development.
My question is: is there any reason why moving forward with the master branch being py3 and having a py2 tag for "backwards compatibility" is a terrible idea? If so, it might be worth investing the effort in having a single py2 and py3 compatible codebase, otherwise I would prepare a pull request with the python3 changes.
The text was updated successfully, but these errors were encountered: