CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 17 Jul 2025 21:38:59 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090815084451
location: https://web.archive.org/web/20090815084451/https://wiki.python.org/moin/PortingToPy3k
server-timing: captures_list;dur=0.546485, exclusion.robots;dur=0.019079, exclusion.robots.policy;dur=0.008544, esindex;dur=0.012891, cdx.remote;dur=35.399601, LoadShardBlock;dur=105.409840, PetaboxLoader3.datanode;dur=88.683873
x-app-server: wwwb-app214
x-ts: 302
x-tr: 164
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app214; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 17 Jul 2025 21:39:00 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Sat, 15 Aug 2009 08:44:51 GMT
x-archive-orig-server: Apache/2.2.9 (Debian) mod_fastcgi/2.4.6 mod_python/3.3.1 Python/2.5.2 mod_wsgi/2.3
x-archive-orig-vary: Cookie,User-Agent,Accept-Language
x-archive-orig-content-length: 7882
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 15 Aug 2009 08:44:51 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 02 Jan 2009 10:57:03 GMT", ; rel="prev memento"; datetime="Fri, 02 Jan 2009 10:57:03 GMT", ; rel="memento"; datetime="Sat, 15 Aug 2009 08:44:51 GMT", ; rel="next memento"; datetime="Wed, 08 Dec 2010 02:20:37 GMT", ; rel="last memento"; datetime="Sat, 14 Jun 2025 13:07:39 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_11_20090815072331_crawl103.gpg-c/52_11_20090815084423_crawl103.arc.gz
server-timing: captures_list;dur=0.875024, exclusion.robots;dur=0.032078, exclusion.robots.policy;dur=0.014706, esindex;dur=0.016261, cdx.remote;dur=36.815846, LoadShardBlock;dur=191.940475, PetaboxLoader3.datanode;dur=205.604937, load_resource;dur=388.731461, PetaboxLoader3.resolve;dur=329.975927
x-app-server: wwwb-app214
x-ts: 200
x-tr: 676
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
PortingToPy3k - PythonInfo Wiki
Porting code to Python 3
Since Python 3 introduces some incompatibilities, a porting strategy is needed to be able to run code on Python 3, and to have a single codebase that can be made to work under Python 2 and Python 3 using automatic conversion.
There are two separate issues here:
When finished, these two documents are meant to be a comprehensive guide to porting and maintaining Python 2/3 code. They are authored here in the Wiki and will be included in the official Python documentation when in a good shape.
EditText (last edited 2008-12-07 12:17:59 by dslb-088-067-012-128)