0

The result in (interactive) python is in decimal notation

>>> 0xff
255

But I would like to see:

>>> 0xff
0xff
>>> 255
0xff

Can this be done? (I know the hex function, or string formatting like '%x' %, but I would have the hexadecimal notation automatically).

ericj
  • 2,138
  • 27
  • 44

1 Answers1

0

As far as I understand from this post, this cannot be done by a simple setting. Seems like you have to write some lines of code...

Python console default hex display

dudakl
  • 302
  • 1
  • 8