Word of Hexadecimal Value in Python
hex, python
Solution
If you want the signed value, like Pantashu mentioned, then you could use `ctypes`
ctypes.c_short(int('FF20', 16)).value
Problem
Crucial terminology aside, the word value of `0xFF20` is `-224`. From `int( 'FF20', 16 )` I get `65312`. Considering the high-level nature of the language, what is the method for getting the "word" value of a hex string in Python?