A utility class to construct a list from a multi-line response accounting for deleted messages.

POP3 responses sometimes occur in the form of a list of lines containing two pieces of data, a message index and a value of some sort. When a message is deleted, it is omitted from these responses. The setitem method of this class is meant to be called with these two values. In the cases where indices are skipped, it takes care of padding out the missing values with None.

Instance Variable L See __init__
Method __init__
Method setitem Add the value at the specified position, padding out missing entries.
L =
See __init__
def __init__(self, L): (source)
ParametersLThe list being constructed. An empty list should be passed in. (type: list of object)
def setitem(self, (item, value)): (source)

Add the value at the specified position, padding out missing entries.

ParametersitemThe 0-based index in the list at which the value should be placed. (type: int)
valueThe value to put in the list. (type: object)
API Documentation for Twisted, generated by pydoctor at 2015-09-04 15:29:41.