Porting a Python 2.X based project to Python 3 [closed]

拈花ヽ惹草 提交于 2020-01-04 15:25:12

问题


I want to port a web application scanning framework from Python 2.6.5-2.7.3 to Python 3 without causing much harm to the compatibility with Python 2.6+.

I have read briefly about six: Python 2 and 3 Compatibility Library and python-modernize.

The framework I am intending to port uses libraries like twisted which are natively supported in Python 2. I have read http://twistedmatrix.com/trac/wiki/Plan/Python3 which warns against usage of 2to3 at any stage during this process.
The fact that python-modernize is a version of 2to3 has been another source of confusion.

May I have some suggesions on the optimal approach to carry out such a porting and some common bugs that I might encounter ?

来源:https://stackoverflow.com/questions/22481718/porting-a-python-2-x-based-project-to-python-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!