内容表

  • How to port Python 2 Code to Python 3
    • Third-party guides
就业培训     下载中心     Wiki     联络
登录   注册

Log
  1. 首页
  2. Python 3.12.4
  3. 索引
  4. 模块
  5. How to port Python 2 Code to Python 3

How to port Python 2 Code to Python 3 ¶

作者 :

Brett Cannon

Python 2 reached its official end-of-life at the start of 2020. This means that no new bug reports, fixes, or changes will be made to Python 2 - it’s no longer supported: see PEP 373 and status of Python versions .

If you are looking to port an extension module instead of pure Python code, please see 将扩展模块移植到 Python 3 .

The archived python-porting mailing list may contain some useful guidance.

Since Python 3.11 the original porting guide was discontinued. You can find the old guide in the archive .

Third-party guides ¶

There are also multiple third-party guides that might be useful:

  • Guide by Fedora

  • PyCon 2020 tutorial

  • Guide by DigitalOcean

  • Guide by ActiveState

内容表

  • How to port Python 2 Code to Python 3
    • Third-party guides

本页

  • 报告 Bug
  • 展示源

快速搜索

键入搜索术语或模块、类、函数名称。

  1. 首页
  2. Python 3.12.4
  3. 索引
  4. 模块
  5. How to port Python 2 Code to Python 3

版权所有  © 2014-2026 乐数软件    

工业和信息化部: 粤ICP备14079481号-1