Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
binary integer confusion
#2
It would help to see the code that's causing the error and what exactly the error is. Remember that we can't see your screen.

Note that "removing the b'" is really the wrong terminology - decode converts a bytes object into a string.

Given the above, are you actually converting the string into an integer before using it?
Reply


Messages In This Thread
binary integer confusion - by Moris526 - Dec-25-2020, 05:56 PM
RE: binary integer confusion - by ndc85430 - Dec-25-2020, 06:01 PM
RE: binary integer confusion - by Moris526 - Dec-25-2020, 07:27 PM
RE: binary integer confusion - by ndc85430 - Dec-25-2020, 07:31 PM
RE: binary integer confusion - by Moris526 - Dec-25-2020, 09:07 PM
RE: binary integer confusion - by Moris526 - Dec-25-2020, 09:10 PM
RE: binary integer confusion - by ndc85430 - Dec-25-2020, 10:01 PM
RE: binary integer confusion - by Moris526 - Dec-26-2020, 03:22 AM
RE: binary integer confusion - by ndc85430 - Dec-26-2020, 05:58 AM
RE: binary integer confusion - by Moris526 - Dec-26-2020, 06:58 AM
RE: binary integer confusion - by DeaD_EyE - Dec-26-2020, 10:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  hex file to binary or pcap to binary baran01 1 5,755 Dec-11-2019, 10:19 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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