CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sat, 19 Jul 2025 16:53:58 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20091219232840
location: https://web.archive.org/web/20091219232840/https://code.activestate.com/recipes/langs/python/
server-timing: captures_list;dur=0.848239, exclusion.robots;dur=0.037204, exclusion.robots.policy;dur=0.019364, esindex;dur=0.014793, cdx.remote;dur=8.863669, LoadShardBlock;dur=173.477013, PetaboxLoader3.datanode;dur=88.112263, PetaboxLoader3.resolve;dur=57.767592
x-app-server: wwwb-app210
x-ts: 302
x-tr: 264
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app210; 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: Sat, 19 Jul 2025 16:54:00 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Sat, 19 Dec 2009 23:28:21 GMT
x-archive-orig-server: Apache/2.2.3 (CentOS)
x-archive-orig-expires: Sat, 19 Dec 2009 23:38:22 GMT
x-archive-orig-vary: Cookie
x-archive-orig-etag: 9f717b67d5bba22a76911bdd1f1ffab6
x-archive-orig-cache-control: max-age=600
x-archive-orig-age: 19
x-archive-orig-content-length: 28042
x-archive-orig-via: 1.0 box19.activestate.com:3129 (squid/2.6.STABLE21)
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 19 Dec 2009 23:28:40 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 18 Jul 2008 02:31:10 GMT", ; rel="prev memento"; datetime="Wed, 16 Dec 2009 07:58:06 GMT", ; rel="memento"; datetime="Sat, 19 Dec 2009 23:28:40 GMT", ; rel="next memento"; datetime="Sun, 31 Jan 2010 04:30:13 GMT", ; rel="last memento"; datetime="Sun, 08 Jun 2025 08:39:37 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_13_20091219190833_crawl100-c/52_13_20091219232555_crawl103.arc.gz
server-timing: captures_list;dur=1.919590, exclusion.robots;dur=0.023706, exclusion.robots.policy;dur=0.011047, esindex;dur=0.009937, cdx.remote;dur=46.257084, LoadShardBlock;dur=601.458943, PetaboxLoader3.datanode;dur=559.579391, PetaboxLoader3.resolve;dur=269.720066, load_resource;dur=283.155477
x-app-server: wwwb-app210
x-ts: 200
x-tr: 1052
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
Python Recipes « ActiveState Code
Python recipes
-
Context manager for restoring a valuePython / context manager, contextlib / 2 points (2 votes) / by George Sakkis (2 weeks ago, revision 7)
-
DnTreePython / no tags / by Andrew Grigorev (3 weeks, 3 days ago, revision 2)
-
Event-based asynchronous patternPython / asynchronous, decorator, event, generator, inline, nonblocking, pattern, thread / by Glenn Eychaner (3 weeks, 2 days ago, revision 4)
View 20, 50, 100 recipes per page.
Python tags
more…algorithms oop text sysadmin shortcuts programs files web network threads database python debugging xml graphics
Top-rated Python recipes
- Decorator for BindingConstants at … (by Raymond Hettinger)
- Infix operators (by Ferdinand Jamitzky)
- Named Tuples (by Raymond Hettinger)
- Spreadsheet (by Raymond Hettinger)
- Groupby (by Raymond Hettinger)
- Read tabular data from Excel sprea… (by Nicolas Lehuen)
- Dependency Injection The Python Way (by Zoran Isailovski)
- Atomically execute a block of Pyth… (by Raymond Hettinger)
- Fork a daemon process on Unix (by Jürgen Hermann)
- Creating a daemon the Python way (by Chad J. Schroeder)
- Accounts
- Information
- Using
- Feedback
- ActiveState
© 2009 ActiveState Software. All rights reserved.