Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = int(pS[0:2], 16) # this was fat fingered a while back and read [0:3]
- ValueError: invalid literal for int() with base 16: 'x01 '
- struct.unpack( "h", pS[0:2] )
- x = 256*ord(pS[0]) + ord(pS[1])
Add Comment
Please, Sign In to add comment