Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bytes from hex
#2
That's just how the bytes object prints. If the byte represents a printable character, it prints the printable character. If the byte represents a non-printing character, it print \x and the hex for that byte. I don't know of any way to force it to show every single byte as hex. I think you would have to write your own function to do that.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Bytes from hex - by FredericoFagundes - Jan-17-2019, 03:03 PM
RE: Bytes from hex - by ichabod801 - Jan-17-2019, 03:18 PM
RE: Bytes from hex - by FredericoFagundes - Jan-17-2019, 04:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  replace bytes with other byte or bytes BigOldArt 1 10,859 Feb-02-2019, 11:00 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020