On 2/03/21 7:01 am, [email protected] 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 -- [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/2UDCU5CZLTGQKU3WMEIIQ3QAXL3ZAD6I/ Code of Conduct: http://python.org/psf/codeofconduct/
