How are you planning on handling the migration to Python 3?

前端 未结 7 1795
[愿得一人]
[愿得一人] 2020-12-08 02:02

I\'m sure this is a subject that\'s on most python developers\' minds considering that Python 3 is coming out soon. Some questions to get us going in the right direction:

7条回答
  •  独厮守ぢ
    2020-12-08 03:00

    Speaking as a library author:

    I'm waiting for the final version to be released. My belief, like that of most of the Python community, is that 2.x will continue to be the dominant version for a period of weeks or months. That's plenty of time to release a nice, polished 3.x release.

    I'll be maintaining separate 2.x and 3.x branches. 2.x will be backwards compatible to 2.4, so I can't use a lot of the fancy syntax or new features in 2.6 / 3.0. In contrast, the 3.x branch will use every one of those features that results in a nicer experience for the user. The test suite will be modified so that 2to3 will work upon it, and I'll maintain the same tests for both branches.

提交回复
热议问题