> - add missing methods to PyBytes (for list, see the PEP and compare to > > what's already there) > > > As I work on these.. Should the mutable PyBytes_ (buffer) objects implement the following methods inplace and return an additional reference to self?
.capitalize(), .center(), .expandtabs(), .rjust(), .swapcase(), .title(), .upper(), .zfill() 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_)] Alos if not, should we add additional .ireplace() .ilower() etc.. methods to the mutable buffer (PyBytes_)? There are speed advantages to doing many of those in place rather than a data copy. -gps
_______________________________________________ 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
