| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/blob/*name(/*path) |
| route-controller | blob |
| route-action | show |
| fetch-nonce | v2:2bec4939-5924-de5f-65c4-83836592f3a1 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | C2E2:22DB35:4467FD5:571EE90:6B022459 |
| html-safe-nonce | 141001cd59a4139b7d945c3ad3629581edf3399640cfd65e39a9cb8eaa2698e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkUyOjIyREIzNTo0NDY3RkQ1OjU3MUVFOTA6NkIwMjI0NTkiLCJ2aXNpdG9yX2lkIjoiMTYxMzgwOTAzOTU3MjA4MzgwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f69c68d8ffbef6e0f88f62b770dd8972a572062116b9ca57a022e9b9ec786af6 |
| hovercard-subject-tag | repository:1160143400 |
| github-keyboard-shortcuts | repository,source-code,file-tree,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///blob/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md |
| twitter:image | https://opengraph.githubassets.com/7931848c0e3ad682bb58012c4e66d802fc5b0ff0f62147a840a451e87847f200/psf/wiki |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7931848c0e3ad682bb58012c4e66d802fc5b0ff0f62147a840a451e87847f200/psf/wiki |
| og:image:alt | The Python Wiki. Contribute to psf/wiki development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-cache |
| go-import | github.com/psf/wiki git https://github.com/psf/wiki.git |
| octolytics-dimension-user_id | 50630501 |
| octolytics-dimension-user_login | psf |
| octolytics-dimension-repository_id | 1160143400 |
| octolytics-dimension-repository_nwo | psf/wiki |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1160143400 |
| octolytics-dimension-repository_network_root_nwo | psf/wiki |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpsf%2Fwiki%2Fblob%2Fmain%2Fpython%2Fpy3%2FPortingPythonToPy3k.md |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpsf%2Fwiki%2Fblob%2Fmain%2Fpython%2Fpy3%2FPortingPythonToPy3k.md |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&source=header-repo&source_repo=psf%2Fwiki |
| Reload | https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md |
| Reload | https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md |
| Reload | https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md |
| psf | https://github.com/psf |
| wiki | https://github.com/psf/wiki |
| Code | https://github.com/psf/wiki |
| Issues1 (1) | https://github.com/psf/wiki/issues |
| Pull requests11 (11) | https://github.com/psf/wiki/pulls |
| Actions | https://github.com/psf/wiki/actions |
| Projects | https://github.com/psf/wiki/projects |
| Security and quality | https://github.com/psf/wiki/security |
| Insights | https://github.com/psf/wiki/insights |
| https://github.com/psf/wiki |
| wiki | https://github.com/psf/wiki/tree/main |
| python | https://github.com/psf/wiki/tree/main/python |
| py3 | https://github.com/psf/wiki/tree/main/python/py3 |
| History | https://github.com/psf/wiki/commits/main/python/py3/PortingPythonToPy3k.md |
| https://github.com/psf/wiki/commits/main/python/py3/PortingPythonToPy3k.md |
| wiki | https://github.com/psf/wiki/tree/main |
| python | https://github.com/psf/wiki/tree/main/python |
| py3 | https://github.com/psf/wiki/tree/main/python/py3 |
| Raw | https://github.com/psf/wiki/raw/refs/heads/main/python/py3/PortingPythonToPy3k.md |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#porting-python-to-py3k |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#porting-python-code-to-3x |
| 2to3 | https://github.com/psf/wiki/blob/main/python/py3/2to3 |
| 3to2 | https://github.com/psf/wiki/blob/main/python/py3/3to2 |
| HOWTO on porting Python 2 code to Python 3 | http://docs.python.org/py3k/howto/pyporting.html |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#approach-1-make-code-run-unmodified-in-both-python-2-and-python-3 |
| future | http://python-future.org |
| six | http://pythonhosted.org/six/ |
| What's New in Python 2.6 | http://docs.python.org/whatsnew/2.6.html |
| What's New in Python 2.7 | http://docs.python.org/whatsnew/2.7.html |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#strings-and-unicode |
| 2to3 | https://github.com/psf/wiki/blob/main/python/py3/2to3 |
| future | http://python-future.org |
| backports | http://python-future.org/what_else.html#bytes |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#supporting-older-python-versions |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#print-statementfunction |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#exceptions |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#relative-imports |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#integer-division |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#additional-resources |
| http://stromberg.dnsalias.org/~dstromberg/Intro-to-Python/ | http://stromberg.dnsalias.org/~dstromberg/Intro-to-Python/ |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#approach-2-maintain-a-python-2-base-and-use-2to3-to-generate-python-3-code |
| 2to3 | https://github.com/psf/wiki/blob/main/python/py3/2to3 |
| 2to3 | https://github.com/psf/wiki/blob/main/python/py3/2to3 |
| 2to3 | https://github.com/psf/wiki/blob/main/python/py3/2to3 |
| 2to3 | https://github.com/psf/wiki/blob/main/python/py3/2to3 |
| 2to3 | https://github.com/psf/wiki/blob/main/python/py3/2to3 |
| http://doc.python.org/library/2to3.html | http://doc.python.org/library/2to3.html |
| 2to3 | https://github.com/psf/wiki/blob/main/python/py3/2to3 |
| 2to3 | https://github.com/psf/wiki/blob/main/python/py3/2to3 |
| 2to3 | https://github.com/psf/wiki/blob/main/python/py3/2to3 |
| issue4601 | http://bugs.python.org/issue4601 |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#strings-and-bytes |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#approach-3-maintain-a-python-3-base-and-use-3to2-or-futurize-to-generate-python-2-code |
| 3to2 | https://github.com/psf/wiki/blob/main/python/py3/3to2 |
| future | http://python-future.org |
| --from3 | http://python-future.org/automatic_conversion.html#backwards-3-to-both |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#additional-resources-1 |
| http://python-future.org | http://python-future.org |
| http://diveintopython3.org/porting-code-to-python-3-with-2to3.html | http://diveintopython3.org/porting-code-to-python-3-with-2to3.html |
| http://packages.python.org/distribute/python3.html | http://packages.python.org/distribute/python3.html |
| http://lucumr.pocoo.org/2010/2/11/porting-to-python-3-a-guide | http://lucumr.pocoo.org/2010/2/11/porting-to-python-3-a-guide |
| http://lucumr.pocoo.org/2011/1/22/forwards-compatible-python/ | http://lucumr.pocoo.org/2011/1/22/forwards-compatible-python/ |
| http://techspot.zzzeek.org/2011/01/24/zzzeek-s-guide-to-python-3-porting | http://techspot.zzzeek.org/2011/01/24/zzzeek-s-guide-to-python-3-porting |
| https://pythonconverter.com | https://pythonconverter.com |
| https://wiki.python.org/moin/PythonConsulting/Python%202%20support%20and%20migration | https://wiki.python.org/moin/PythonConsulting/Python%202%20support%20and%20migration |
| Tauthon | https://github.com/naftaliharris/tauthon |
| Porting Py65 (and my Superboard) to Python 3 | http://dabeaz.blogspot.com/2011/01/porting-py65-and-my-superboard-to.html |
| Supporting Python 3: An in-depth guide - Migrating Strategies | http://python3porting.com/strategies.html |
| "Moving to Python 3" | http://lwn.net/Articles/426906/ |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#martins-notes-from-psycopg2 |
| 2to3 | https://github.com/psf/wiki/blob/main/python/py3/2to3 |
| 2to3 | https://github.com/psf/wiki/blob/main/python/py3/2to3 |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#differences-in-specific-libraries |
| PyQt4 | https://github.com/psf/wiki/blob/main/python/gui/PortingPythonToPy3k/PyQt4 |
| https://github.com/psf/wiki/blob/main/python/py3/PortingPythonToPy3k.md#more-links |
| http://code.google.com/p/python-incompatibility/ | http://code.google.com/p/python-incompatibility/ |
| PortingDjangoTo3k | https://github.com/psf/wiki/blob/main/python/py3/PortingDjangoTo3k |
| Porting Durus / QP / Qpy / Dulcinea, using approach targeting Python 2 and Python 3 off same code base | http://mail.mems-exchange.org/durusmail/qp/441/ |
| Early2to3Migrations | https://github.com/psf/wiki/blob/main/python/archive/Early2to3Migrations |
| Stephan Deibel's blog post on code usable from Python 2.0 through 3.0 | http://pythonology.blogspot.com/2009/02/making-code-run-on-python-20-through-30.html |
| Python code that demonstrates differences between 2.5 and 3.0, and ways of making the same code run on 2.6 and 3.x | http://python-incompatibility.googlecode.com/ |
| http://pythonic.pocoo.org/2008/12/14/python-3-porting-resources | http://pythonic.pocoo.org/2008/12/14/python-3-porting-resources |
| psycopg2 porting to Python 3: a report | http://initd.org/psycopg/articles/2011/01/24/psycopg2-porting-python-3-report/ |
| http://ptgmedia.pearsoncmg.com/imprint_downloads/informit/promotions/python/python2python3.pdf | http://ptgmedia.pearsoncmg.com/imprint_downloads/informit/promotions/python/python2python3.pdf |
| Lennart Regebro's overview of Porting strategies | http://python3porting.com/strategies.html |
| Dropbox' migration to Python 3 | https://blogs.dropbox.com/tech/2018/09/how-we-rolled-out-one-of-the-largest-python-3-migrations-ever/ |
| Instagram's migration to Python 3 | https://thenewstack.io/instagram-makes-smooth-move-python-3/ |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |