[Python-Dev] Proof of the pudding: str.partition()

Terry Reedy tjreedy at udel.edu
Thu Sep 1 05:01:34 CEST 2005


>> for some use cases, a naive partition-based solution is going to be a 
>> lot slower
>> than the old find+slice approach, no matter how you slice, index, or 
>> unpack the
>> return value.

The index+slice approach will still be available for such cases.  I am sure 
we will see relative speed versus string size benchmarks.

Terry J. Reedy
 





More information about the Python-Dev mailing list