New submission from Gregory P. Smith: bytearray has many methods that return a *new* bytearray object rather than applying the transformation to modify the bytearray in place. Given that one use of bytearray's is to avoid making extra copies... There should be in-place variants of the following methods:
ljust lower lstrip rjust rstrip strip swapcase title translate upper especially so for the methods that don't change the length or move data around such as translate, lower, upper, swapcase and title. ---------- components: Interpreter Core keywords: easy messages: 183082 nosy: gregory.p.smith priority: normal severity: normal stage: needs patch status: open title: An in-place version of many bytearray methods is needed type: enhancement versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17301> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com