<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> >> Also what about .replace() and .translate()?<br>> ><br>> >> If they are not done in place should they return a new buffer (PyBytes_)
<br>> >> object or a bytes (PyString_) object? [i'd say a buffer (PyBytes_)]<br>> ><br>> > They should return the same type as 'self'.<br>><br>> My preference would be to do the work in place and return None, just
<br>> like sorting a list, reversing a list, appending to a list, etc.<br><br>Then propose new APIs that don'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 'i' in front for inplace. Anyways I'll be done with my patch to add the copying versions of the methods later today. Stay tuned.<br>