class documentation

class twisted.mail._pop3client._ListSetter: (source)

View In Hierarchy

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.
def __init__(self, L): (source)
ParametersLThe list being constructed. An empty list should be passed in. (type: list of object)
def setitem(self, itemAndValue): (source)

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

ParametersitemAndValueA tuple of (item, value). The item is the 0-based index in the list at which the value should be placed. The value is is an object to put in the list. (type: tuple)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.