Writing Python 2.7 code that is as close to Python 3.x syntax as possible

前端 未结 7 729
情深已故
情深已故 2020-12-23 02:29

Since Django doesn\'t yet support Python 3.x, I\'m using Python 2.7. However, I\'d like to go ahead and start familiarizing myself with the new Python 3.x syntax as much as

7条回答
  •  执笔经年
    2020-12-23 03:07

    Many Python IDE's can be of big help here.

    PyCharm, for example, can be configured to check for compatibility with any range of versions,

    enter image description here

    and report issues at any level of severity:

    enter image description here

提交回复
热议问题