Showing content from http://mail.python.org/pipermail/python-dev/attachments/20060905/9475cb5e/attachment.html below:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote
cite="mid5.1.1.6.0.20060905170453.0269c4e8@sparrow.telecommunity.com"
type="cite">
<blockquote type="cite">
<pre wrap="">See, for me, it's all about the results of the operation, not how the
results are (supposedly) used. The way I think about it is that I've
got some string and I'm looking for some split point within that
string. That split point is clearly the "middle" (but "sep" works
too) and everything to the right of that split point gets returned in
"right" while everything to the left gets returned in "left".
</pre>
</blockquote>
<pre wrap=""><!---->
+1 for left/sep/right for both operations. It's easier to remember a
visual correlation (left,sep,right) than it is to try and think about an
abstraction in which the order of results has something to do with what
direction I found the separator in.
If I'm repeating from right to left, then of course the "left" is the part
I'll want to repeat on.
</pre>
</blockquote>
<br>
That's fine with me. I accept there will always be someone who stands
on their head and then becomes confused about whether their head is now
their body and vice-versa ;-) <br>
<br>
If someone is so inclined, feel free to go in and change the docs and
docstrings to left/sep/right. More importantly, be sure to include an
example: '<a class="moz-txt-link-abbreviated" href="http://www.python.org">www.python.org</a>'.rpartition('.') --> ('<a class="moz-txt-link-abbreviated" href="http://www.python">www.python</a>', '.',
'org')<br>
<br>
Also, be sure to check with Neal or Anthony. Since this is just a
documentation nit, it may need to wait for Py2.5.1. Ideally, we should
only be making critical bugfixes and API fixes at this point in the
release cycle.<br>
<br>
<br>
Raymond<br>
<br>
<br>
<br>
</body>
</html>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4