[Python-Dev] partition() (was: Remove str.find in 3.0?)
Fredrik Lundh
fredrik at pythonware.com
Tue Aug 30 19:54:25 CEST 2005
Phillip J. Eby wrote:
>>both split on a given token. partition splits once, and returns all three
>>parts, while piece returns the part you ask for
>
> No, because looking at that URL, there is no piece that is the token split
> on. partition() always returns 3 parts for 1 occurrence of the token,
> whereas $PIECE only has 2.
so "absolutely nothing in common" has now turned into "does the
same thing but doesn't return the value you passed to it" ?
sorry for wasting my time.
</F>
More information about the Python-Dev
mailing list