[New-bugs-announce] [issue17301] An in-place version of many bytearray methods is needed
Gregory P. Smith
report at bugs.python.org
Tue Feb 26 21:28:43 CET 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue17301>
_______________________________________
More information about the New-bugs-announce
mailing list