<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="q"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
- add missing methods to PyBytes (for list, see the PEP and compare to<br>what&#39;s already there)
<br></blockquote></span></div></blockquote></div><br>As I work on these..&nbsp; Should the mutable PyBytes_ (buffer) objects implement the following methods inplace and return an additional reference to self?<br><br>.capitalize(), .center(), .expandtabs(), .rjust(), .swapcase(), .title(), .upper(), .zfill()
<br><br>Also what about .replace() and .translate()?<br><br>If they are not done in place should they return a new buffer (PyBytes_) object or a bytes (PyString_) object?&nbsp; [i&#39;d say a buffer (PyBytes_)]<br><br>Alos if not, should we add additional .ireplace() .ilower() etc.. methods to the mutable buffer (PyBytes_)?&nbsp; There are speed advantages to doing many of those in place rather than a data copy.
<br><br>-gps