def unwrapDouble(self, tlv): if isinstance(tlv, TLVAmqp): code = tlv.getCode() if code != AMQPType.DOUBLE: raise ValueError('Error trying to parse DOUBLE: received ' + str(tlv.getCode())) return util.getDouble(tlv.getValue())
def getDouble(self): return util.getDouble(self.value)