Skip to content

Instantly share code, notes, and snippets.

@untitaker
Last active January 15, 2017 18:13
Show Gist options
  • Save untitaker/5321447 to your computer and use it in GitHub Desktop.
Save untitaker/5321447 to your computer and use it in GitHub Desktop.
Werkzeug Python 3 notes
@Chitrank-Dixit
Copy link

@unitaker Have you used six module for porting. I am working on Moin2 porting to Python 3.x and using module six but at some cases I doubt module six because some cases can be easily handled by simple try and except.

We do see that we need to use only some lines of code rather than using try except. So does porting cannonically makes any substantial difference.

@untitaker
Copy link
Author

@chitrank: http://lucumr.pocoo.org/2013/5/21/porting-to-python-3-redux/

Six is definitely required if you want to support Python 2.5 but from 2.6 or later there really is not much of a reason to use six

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment