On Mon, Mar 01, 2021 at 06:01:24PM -0000, [email protected] wrote:
> I propose an array-type string like the, or for the bytearray. It would work
> as a mutable b-string, as
[...]
> This would be processed the same as, or would be the bytearray,
Then just use bytearray.
I think the only new part is to provide a literal syntax for bytearray:
a = a"xyz" # same as bytearray(b"xyz")
But we already have a bunch of prefixes:
b B u U r R f F plus various combinations
and this would presumably add six more:
a A ar aR Ar AR
Literal syntax is a convenience, its not essential, so I guess this
proposal requires justification for why bytearray is important enough to
justify literal syntax.
--
Steve
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/RUZZ4XU46SAVPJJBGC2CFF6R2DEDKX5W/
Code of Conduct: http://python.org/psf/codeofconduct/