<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; &gt;&gt; Also what about .replace() and .translate()?<br>&gt; &gt;<br>&gt; &gt;&gt; If they are not done in place should they return a new buffer (PyBytes_)
<br>&gt; &gt;&gt; object or a bytes (PyString_) object?&nbsp;&nbsp;[i&#39;d say a buffer (PyBytes_)]<br>&gt; &gt;<br>&gt; &gt; They should return the same type as &#39;self&#39;.<br>&gt;<br>&gt; My preference would be to do the work in place and return None, just
<br>&gt; like sorting a list, reversing a list, appending to a list, etc.<br><br>Then propose new APIs that don&#39;t have the same names as the existing<br>ones, which are amongst the most well-known APIs in all of Python.
</blockquote><div><br>Agreed, thats why I suggest new method names with an &#39;i&#39; in front for inplace.&nbsp; Anyways I&#39;ll be done with my patch to add the copying versions of the methods later today.&nbsp; Stay tuned.<br>
</div><br><br></div><br>