[issue45164] int.to_bytes()
daniel capelle
report at bugs.python.org
Fri Sep 10 07:59:01 EDT 2021
daniel capelle <daniel at etrics.de> added the comment:
for example check:
(6500).to_bytes(2, 'big')
result is:
b'\x19d'
but was expected to be:
b'\x19\x64'
since
ord('d') is 100 = 0x64 there seems to be hex and char representation mixed up.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45164>
_______________________________________
More information about the Python-bugs-list
mailing list