On 2/03/21 7:01 am, mmax42...@gmail.com wrote:
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.

No, it's not:

>>> b = bytearray()
>>> b.append(42)
>>> b
bytearray(b'*')


--
Greg
_______________________________________________
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/2UDCU5CZLTGQKU3WMEIIQ3QAXL3ZAD6I/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to