> > >> 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.
_______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
