daniel capelle added the comment:
An ASCII representation is shown instead of the hexadecimal value, if there is
any.
I was not aware this is an intended behaviour.
--
___
Python tracker
<https://bugs.python.org/issue45
daniel capelle 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.
--
__
New submission from daniel capelle :
for example check:
(6500).to_bytes(2, 'big')
result is:
b'\x19d'
but was expected to be:
b'\x1964'
since
ord('d') is 100 = 0x64 there seems to be hex and char representation mixed up.
--
messages: 401571
no