matching one time through a loop

Delaney, Timothy tdelaney at avaya.com
Thu May 30 19:11:16 EDT 2002


> From: Corey G. [mailto:ctgaff at attbi.com]
> 
> This comment made me realize just how little I know about 
> Python.  Well,
> it's only been 3 days now, but none the less.
> 
> By moving the regex out of the loop and only compiling it once, the
> script is 3x faster than before and now out performs my original Perl
> script.

This needs to be added to the comparisons page ;)

Tim Delaney





More information about the Python-list mailing list