
March 2, 2021
9:24 p.m.
On Mon, Mar 01, 2021 at 06:01:24PM -0000, mmax42852@gmail.com 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