imaplib.IMAP4.setacl()

IMAP4.setacl(mailbox, who, what) Set an ACL for mailbox. The method is non-standard, but is supported by the Cyrus server.

cgi.FieldStorage.getfirst()

FieldStorage.getfirst(name, default=None) This method always returns only one value associated with form field name. The method returns only the first value in case that more values were posted under such name. Please note that the order in which the values are received may vary from browser to browser and should not be counted on. [1] If no such form field or value exists then the method returns the value specified by the optional parameter default. This parameter defaults to None if not sp

xml.dom.pulldom.DOMEventStream.expandNode()

expandNode(node) Expands all children of node into node. Example: from xml.dom import pulldom xml = '<html><title>Foo</title> <p>Some text <div>and more</div></p> </html>' doc = pulldom.parseString(xml) for event, node in doc: if event == pulldom.START_ELEMENT and node.tagName == 'p': # Following statement only prints '<p/>' print(node.toxml()) doc.expandNode(node) # Following statement prints node wit

pickle.UnpicklingError

exception pickle.UnpicklingError Error raised when there is a problem unpickling an object, such as a data corruption or a security violation. It inherits PickleError. Note that other exceptions may also be raised during unpickling, including (but not necessarily limited to) AttributeError, EOFError, ImportError, and IndexError.

unittest.TestResult.stopTest()

stopTest(test) Called after the test case test has been executed, regardless of the outcome.

mailbox.NotEmptyError

exception mailbox.NotEmptyError Raised when a mailbox is not empty but is expected to be, such as when deleting a folder that contains messages.

audioop.adpcm2lin()

audioop.adpcm2lin(adpcmfragment, width, state) Decode an Intel/DVI ADPCM coded fragment to a linear fragment. See the description of lin2adpcm() for details on ADPCM coding. Return a tuple (sample, newstate) where the sample has the width specified in width.

subprocess.CompletedProcess.stdout

stdout Captured stdout from the child process. A bytes sequence, or a string if run() was called with universal_newlines=True. None if stdout was not captured. If you ran the process with stderr=subprocess.STDOUT, stdout and stderr will be combined in this attribute, and stderr will be None.

xml.dom.InvalidAccessErr

exception xml.dom.InvalidAccessErr Raised if a parameter or an operation is not supported on the underlying object.

random.gauss()

random.gauss(mu, sigma) Gaussian distribution. mu is the mean, and sigma is the standard deviation. This is slightly faster than the normalvariate() function defined below.