[Python-ideas] Integer concatenation to byte string

2021-03-02 Thread Stephen J. Turnbull
[email protected] writes: > I propose an array-type string like the, or for the bytearray. It > would work as a mutable b-string, as > > foo = a"\x00\x01\x02abcÿ" # a-string, a mutable bytes object. I don't work with bytes much, so I won't comment on the proposal itself. But as some

[Python-ideas] Integer concatenation to byte string

2021-03-01 Thread mmax42852
Currently, the only way to concatenate an integer to a bytes object is by converting the integer to bytes with a function call before concatenating. And there is no way to make a mutable bytes object without a function call. I propose an array-type string like the, or for the bytearray. It woul