def toString(self, inObject):
        if isinstance(inObject, decimal.Decimal):
            # Hopefully decimal.Decimal.__str__ actually does what we want.
            return str(inObject)
        raise ValueError(
            "amp.Decimal can only encode instances of decimal.Decimal")
Serialize a C{decimal.Decimal} instance to the specified wire format.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/protocols/amp.py/Decimal.toString