Guest User

Untitled

a guest
Jun 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. x = int(pS[0:2], 16) # this was fat fingered a while back and read [0:3]
  2.  
  3. ValueError: invalid literal for int() with base 16: 'x01 '
  4.  
  5. struct.unpack( "h", pS[0:2] )
  6.  
  7. x = 256*ord(pS[0]) + ord(pS[1])
Add Comment
Please, Sign In to add comment