Nested function scope problem

Josiah Manson slomojo83 at gmail.com
Sat Jul 22 01:53:57 EDT 2006


I just did some timings, and found that using a list instead of a
string for tok is significantly slower (it takes 1.5x longer). Using a
regex is slightly faster for long strings, and slightly slower for
short ones. So, regex wins in both berevity and speed!




More information about the Python-list mailing list