May-03-2017, 05:45 PM
Resources for converting Python 2.x code to 3.x
I don't intend to use Python 2.x. I'll be writing all my projects in 3.x. However, sometimes I look up code samples to find solutions to problems. Why reinvent the wheel if someone else has already created code for a certain task and has made it available?
Of course, there's always the chance that I'll find exactly the code I need, except that it's written in 2.x. For that reason, I've looked up the differences between the two versions. I found this page:
https://docs.python.org/3.0/whatsnew/3.0.html
It doesn't appear to cover tkinter, however, so I'll be looking up a page on that too. Is there anything else I should keep in mind? Are there any other good resources in the event that I need to convert Python 2.x code to 3.x?
I don't intend to use Python 2.x. I'll be writing all my projects in 3.x. However, sometimes I look up code samples to find solutions to problems. Why reinvent the wheel if someone else has already created code for a certain task and has made it available?
Of course, there's always the chance that I'll find exactly the code I need, except that it's written in 2.x. For that reason, I've looked up the differences between the two versions. I found this page:
https://docs.python.org/3.0/whatsnew/3.0.html
It doesn't appear to cover tkinter, however, so I'll be looking up a page on that too. Is there anything else I should keep in mind? Are there any other good resources in the event that I need to convert Python 2.x code to 3.x?