[Python-Dev] Fwd: Problem withthe API for str.rpartition()
Barry Warsaw
barry at python.org
Tue Sep 5 20:51:13 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
> distinction
> 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.
- -Barry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iQCVAwUBRP3HIXEjvBPtnXfVAQIx5wP+MPF5tk4moX4jH0yhGvR6gKcGBusyN152
redIr0xiNqECfrIHkc756UDLn3HhB2WdEjR9pn06RzmbgePMPcGP19cjZdHGwjFK
3e4Qg8zW3cL0iCnybL4AEaoZksuHGwJpZbId9HF60GFqYdjNTKEMNIVRI7jTE9pP
zbBO6Sscnl0=
=HB4k
-----END PGP SIGNATURE-----
More information about the Python-Dev
mailing list