On Mon, Mar 01, 2021 at 06:01:24PM -0000, mmax42...@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 _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/RUZZ4XU46SAVPJJBGC2CFF6R2DEDKX5W/ Code of Conduct: http://python.org/psf/codeofconduct/