:orphan: .. _pyporting-howto: ************************************* How to port Python 2 Code to Python 3 ************************************* :author: 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 :ref:`cporting-howto`. The archived python-porting_ mailing list may contain some useful guidance. Since Python 3.13 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 `_ .. _python-porting: https://mail.python.org/pipermail/python-porting/