[Python-Dev] Fwd: Problem withthe API for str.rpartition()
barry at python.org
Tue Sep 5 20:51:13 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
On Sep 5, 2006, at 2:32 PM, Raymond Hettinger wrote:
> Another thought is that strings don't really have a left and right.
> They have a beginning and end. The left/right or top/bottom
> is culture specific.
For the target of the method, this is true, but it's not true for the
results which is what we're talking about describing here. 'left' is
whatever is to the left of the separator and 'right' is whatever is
to the right of the separator. Seems obvious to me.
I believe (left, sep, right) will be the clearest description for all
users, with little chance of confusion.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
-----END PGP SIGNATURE-----
More information about the Python-Dev