email.utils.getaddresses()

email.utils.getaddresses(fieldvalues) This method returns a list of 2-tuples of the form returned by parseaddr(). fieldvalues is a sequence of header field values as might be returned by Message.get_all. Here’s a simple example that gets all the recipients of a message: from email.utils import getaddresses tos = msg.get_all('to', []) ccs = msg.get_all('cc', []) resent_tos = msg.get_all('resent-to', []) resent_ccs = msg.get_all('resent-cc', []) all_recipients = getaddresses(tos + ccs + resen

http.client.RemoteDisconnected

exception http.client.RemoteDisconnected A subclass of ConnectionResetError and BadStatusLine. Raised by HTTPConnection.getresponse() when the attempt to read the response results in no data read from the connection, indicating that the remote end has closed the connection. New in version 3.5: Previously, BadStatusLine('') was raised.

urllib.request.HTTPPasswordMgrWithPriorAuth.update_authenticated()

HTTPPasswordMgrWithPriorAuth.update_authenticated(self, uri, is_authenticated=False) Update the is_authenticated flag for the given uri or list of URIs.

mailbox.Mailbox.pop()

pop(key, default=None) Return a representation of the message corresponding to key and delete the message. If no such message exists, return default. The message is represented as an instance of the appropriate format-specific Message subclass unless a custom message factory was specified when the Mailbox instance was initialized.

str.rpartition()

str.rpartition(sep) Split the string at the last occurrence of sep, and return a 3-tuple containing the part before the separator, the separator itself, and the part after the separator. If the separator is not found, return a 3-tuple containing two empty strings, followed by the string itself.

asyncio.Queue.put_nowait()

put_nowait(item) Put an item into the queue without blocking. If no free slot is immediately available, raise QueueFull.

xml.dom.Element.setAttributeNS()

Element.setAttributeNS(namespaceURI, qname, value) Set an attribute value from a string, given a namespaceURI and a qname. Note that a qname is the whole attribute name. This is different than above.

asyncio.Condition.locked()

locked() Return True if the underlying lock is acquired.

decimal.Context.abs()

abs(x) Returns the absolute value of x.

http.cookiejar.FileCookieJar.delayload

FileCookieJar.delayload If true, load cookies lazily from disk. This attribute should not be assigned to. This is only a hint, since this only affects performance, not behaviour (unless the cookies on disk are changing). A CookieJar object may ignore it. None of the FileCookieJar classes included in the standard library lazily loads cookies.