(self, hex_repr)
return self.from_int(val, unsigned=True)
Convert str in hexadecimal representation to integer.
Convert str in hexadecimal representation to integer.
Convert str in hexadecimal representation to integer .
def from_hex(self, hex_repr):
        """Convert str in hexadecimal representation to integer."""
        # hex representations must be contiguous
        val = int(hex_repr, 16) if hex_repr else 0
        return self.from_int(val, unsigned=True)
def from_hex ( self , hex_repr ) : # hex representations must be contiguous val = int ( hex_repr , 16 ) if hex_repr else 0 return self . from_int ( val , unsigned = True )