CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Tue, 15 Jul 2025 02:08:35 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090620004343
location: https://web.archive.org/web/20090620004343/https://code.activestate.com/recipes/langs/python/
server-timing: captures_list;dur=0.484680, exclusion.robots;dur=0.017662, exclusion.robots.policy;dur=0.008878, esindex;dur=0.010678, cdx.remote;dur=5.942548, LoadShardBlock;dur=609.602291, PetaboxLoader3.datanode;dur=98.849905, PetaboxLoader3.resolve;dur=472.365488
x-app-server: wwwb-app204
x-ts: 302
x-tr: 651
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app204; 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: Tue, 15 Jul 2025 02:08:35 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Sat, 20 Jun 2009 00:43:43 GMT
x-archive-orig-server: Apache/2.2.3 (CentOS)
x-archive-orig-expires: Sat, 20 Jun 2009 00:53:43 GMT
x-archive-orig-vary: Cookie
x-archive-orig-etag: 6a8f9449e9abb577fd610dfc8ca2383f
x-archive-orig-cache-control: max-age=600
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, 20 Jun 2009 00:43:43 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="Fri, 15 May 2009 08:02:12 GMT", ; rel="memento"; datetime="Sat, 20 Jun 2009 00:43:43 GMT", ; rel="next memento"; datetime="Mon, 22 Jun 2009 14:38:21 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_10_20090620002427_crawl101-c/52_10_20090620004233_crawl103.arc.gz
server-timing: captures_list;dur=0.657139, exclusion.robots;dur=0.017497, exclusion.robots.policy;dur=0.008322, esindex;dur=0.009861, cdx.remote;dur=6.152197, LoadShardBlock;dur=224.188525, PetaboxLoader3.datanode;dur=153.463362, PetaboxLoader3.resolve;dur=196.389512, load_resource;dur=137.427346
x-app-server: wwwb-app204
x-ts: 200
x-tr: 439
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
-
Generate HTML syntax-highlighted listings for any file using pygmentsPython / pretty-printer, pygments, syntax highlighter / by ccpizza (14 hours, 2 minutes ago, revision 5)
-
Regular Expression for generic sequences of symbolsPython / adt, re, Regular expressions, sequence / by Emanuele Ruffaldi (6 days, 7 hours ago, revision 2)
-
Partitioning a sequencePython / no tags / 1 point (1 vote) / by Raymond Hettinger (2 weeks, 1 day ago, revision 2)
-
Utility Mill Support ExamplePython / Python 3.0, RPC, testing, Utility Mill / -1 points (1 vote) / by Stephen Chappell (2 weeks, 2 days ago)
-
Polar-to-rectangular conversions using CORDICPython / no tags / 1 point (1 vote) / by Raymond Hettinger (2 weeks, 2 days ago)
-
Utility Mill SupportPython / Python 3.0, RPC, testing, Utility Mill / 1 point (1 vote) / by Stephen Chappell (2 weeks, 2 days ago, revision 2)
-
Expression EvaluatorPython / evaluation, expressions, parsing, Python 3.0 / -1 points (1 vote) / by Stephen Chappell (2 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 debugging xml graphics python
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)
- Creating a daemon the Python way (by Chad J. Schroeder)
- 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)
- Binary floating point summation ac… (by Raymond Hettinger)
- Accounts
- Information
- Using
- Feedback
- ActiveState
© 2008 ActiveState Software. All rights reserved.