An amp.Argument which encodes its parser and serializer arguments *including the protocol* into its parsed and serialized forms.

Method fromStringProto Don't decode anything; just return all possible information.
Method toStringProto Encode identifying information about object and protocol into a string for later verification.

Inherited from Argument:

Method __init__ Create an Argument.
Method retrieve Retrieve the given key from the given dictionary, removing it if found.
Method fromBox Populate an 'out' dictionary with mapping names to Python values decoded from an 'in' AmpBox mapping strings to string values.
Method toBox Populate an 'out' AmpBox with strings encoded from an 'in' dictionary mapping names to Python values.
Method fromString Convert a string to a Python object. Subclasses must implement this.
Method toString Convert a Python object into a string for passing over the network.
def fromStringProto(self, string, protocol):

Don't decode anything; just return all possible information.

ReturnsA two-tuple of the input string and the protocol.
def toStringProto(self, obj, protocol):

Encode identifying information about object and protocol into a string for later verification.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.