email.message.Message.items()

items() Return a list of 2-tuples containing all the message’s field headers and values.

getopt.error

exception getopt.error Alias for GetoptError; for backward compatibility.

os.sched_setaffinity()

os.sched_setaffinity(pid, mask) Restrict the process with PID pid (or the current process if zero) to a set of CPUs. mask is an iterable of integers representing the set of CPUs to which the process should be restricted.

unittest.TestCase.assertSetEqual()

assertSetEqual(first, second, msg=None) Tests that two sets are equal. If not, an error message is constructed that lists the differences between the sets. This method is used by default when comparing sets or frozensets with assertEqual(). Fails if either of first or second does not have a set.difference() method. New in version 3.1.

poplib.POP3_SSL

class poplib.POP3_SSL(host, port=POP3_SSL_PORT, keyfile=None, certfile=None, timeout=None, context=None) This is a subclass of POP3 that connects to the server over an SSL encrypted socket. If port is not specified, 995, the standard POP3-over-SSL port is used. timeout works as in the POP3 constructor. context is an optional ssl.SSLContext object which allows bundling SSL configuration options, certificates and private keys into a single (potentially long-lived) structure. Please read Securi

tkinter.ttk.Treeview.selection_add()

selection_add(items) Add items to the selection.

smtplib.SMTP.docmd()

SMTP.docmd(cmd, args='') Send a command cmd to the server. The optional argument args is simply concatenated to the command, separated by a space. This returns a 2-tuple composed of a numeric response code and the actual response line (multiline responses are joined into one long line.) In normal operation it should not be necessary to call this method explicitly. It is used to implement other methods and may be useful for testing private extensions. If the connection to the server is lost w

ctypes.c_ubyte

class ctypes.c_ubyte Represents the C unsigned char datatype, it interprets the value as small integer. The constructor accepts an optional integer initializer; no overflow checking is done.

binascii.b2a_uu()

binascii.b2a_uu(data) Convert binary data to a line of ASCII characters, the return value is the converted line, including a newline char. The length of data should be at most 45.

logging.error()

logging.error(msg, *args, **kwargs) Logs a message with level ERROR on the root logger. The arguments are interpreted as for debug().