Re: [Python-Dev] Fwd: Problem withthe API for str.rpartition()

2006年9月05日 13:17:35 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sep 5, 2006, at 4:13 PM, Raymond Hettinger wrote:
> Tim Peters wrote:
>
>> upto, sep, rest
>>
>> in whatever order they apply.
>>
> In the rpartition case, that would be (rest, sep, upto) which seems a
> bit cryptic.
>
> We need some choice of words that clearly mean:
> * the chopped-off snippet (guaranteed to not contain the separator)
> * the separator if found
> * the unchopped remainer of the string (which may contain a 
> separator).
>
> Of course, if a clear example is added, the choice of words becomes 
> much
> less important.
Ideally too, the terminology (and order) for partition and rpartition 
would be the same.
- -Barry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iQCVAwUBRP3bVXEjvBPtnXfVAQJSKwP9Ev3MPzum3kp4hNDJZyBmEShzPvL2WQv2
VThbxZX1MDfeDXupNwF22bFA5gF/9vZp3nToUqyAbOaPSd93hJSHOdeWdAhR2BdT
EICkzBTGCtVkbqu3Ep1N/jb9GJUvgkgNAWtRZVuTWQtJc6AanV9ssTcF6F7ipc6p
zgSWeAc0a3E=
=W7LV
-----END PGP SIGNATURE-----
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to