CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 24 Jul 2025 23:32:14 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090416022102
location: https://web.archive.org/web/20090416022102/https://code.activestate.com/recipes/langs/python/
server-timing: captures_list;dur=0.682767, exclusion.robots;dur=0.026995, exclusion.robots.policy;dur=0.011524, esindex;dur=0.015216, cdx.remote;dur=30.629028, LoadShardBlock;dur=1151.187515, PetaboxLoader3.datanode;dur=867.134888, PetaboxLoader3.resolve;dur=220.939279
x-app-server: wwwb-app217
x-ts: 302
x-tr: 1226
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app217; 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, 24 Jul 2025 23:32:15 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Thu, 16 Apr 2009 02:18:20 GMT
x-archive-orig-server: Apache/2.2.3 (CentOS)
x-archive-orig-expires: Thu, 16 Apr 2009 02:23:31 GMT
x-archive-orig-vary: Cookie
x-archive-orig-etag: b53a58faefa04ed22dfad7d34aae009c
x-archive-orig-cache-control: max-age=600
x-archive-orig-age: 162
x-archive-orig-content-length: 25442
x-archive-orig-via: 1.0 box18.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: Thu, 16 Apr 2009 02:21:02 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="Sat, 14 Mar 2009 12:01:00 GMT", ; rel="memento"; datetime="Thu, 16 Apr 2009 02:21:02 GMT", ; rel="next memento"; datetime="Sat, 18 Apr 2009 19:29:56 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_9_20090416011821_crawl102-c/52_9_20090416022024_crawl103.arc.gz
server-timing: captures_list;dur=0.672022, exclusion.robots;dur=0.024831, exclusion.robots.policy;dur=0.011105, esindex;dur=0.013908, cdx.remote;dur=21.927711, LoadShardBlock;dur=122.002292, PetaboxLoader3.datanode;dur=66.050105, PetaboxLoader3.resolve;dur=290.475465, load_resource;dur=291.606065
x-app-server: wwwb-app217
x-ts: 200
x-tr: 521
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
ActiveState Code
Python recipes
-
lazy propertyPython / evaluation, lazy, lazy evaluation / by Sridhar Ratnakumar (4 hours, 35 minutes ago, revision 3)
-
Create SHA Hashes of a DirectoryPython / encryption, Hash, security, SHA / -2 points (2 votes) / by andrew.canit (1 day, 11 hours ago, revision 2)
-
Extract a compressed filePython / no tags / 1 point (1 vote) / by Sridhar Ratnakumar (6 days, 10 hours ago, revision 2)
-
Multi-Regex: Single pass replace of multiple regexesPython / Regular expressions, string substitution / -1 points (1 vote) / by Michael Palmer (1 week, 5 days ago, revision 5)
-
Parallel mapPython / algorithm, map, parallel / -2 points (2 votes) / by Miki Tebeka (1 week, 5 days ago, revision 3)
-
DVM_Versus_CAPMPython / Corporate_Finance, Financial_Management / -2 points (4 votes) / by Fouad Teniou (2 weeks ago, revision 3)
-
Long period random number generatorPython / no tags / 1 point (3 votes) / by Raymond Hettinger (2 weeks ago, revision 12)
-
Serve static web content from within a gzipped tarball to save space using CherryPyPython / cherrypy, compression, embedded, gzip, html, http, network, routes, web, web server / 1 point (1 vote) / by Dan McDougall (2 weeks, 1 day ago)
-
Python code minifierPython / compression, embedded, minify, parsing, regex / 2 points (4 votes) / by Dan McDougall (1 day, 1 hour ago, revision 11)
View 20, 50, 100 recipes per page.
Python tags
more…algorithms oop text sysadmin shortcuts programs files web network threads database debugging xml graphics extending
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)
- Creating a daemon the Python way (by Chad J. Schroeder)
- Dependency Injection The Python Way (by Zoran Isailovski)
- Binary floating point summation ac… (by Raymond Hettinger)
- Module to allow Asynchronous subpr… (by Josiah Carlson)
- Accounts
- Information
- Using
- Feedback
- ActiveState
© 2008 ActiveState Software. All rights reserved.