[Python-3000] PEP 3137 plan of attack

Gregory P. Smith greg at krypto.org
Mon Oct 15 19:55:43 CEST 2007


> > >> Also what about .replace() and .translate()?
> > >
> > >> If they are not done in place should they return a new buffer
> (PyBytes_)
> > >> object or a bytes (PyString_) object?  [i'd say a buffer (PyBytes_)]
> > >
> > > They should return the same type as 'self'.
> >
> > My preference would be to do the work in place and return None, just
> > like sorting a list, reversing a list, appending to a list, etc.
>
> Then propose new APIs that don't have the same names as the existing
> ones, which are amongst the most well-known APIs in all of Python.


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20071015/5a876dcd/attachment.htm 


More information about the Python-3000 mailing list