codecs.EncodedFile()

codecs.EncodedFile(file, data_encoding, file_encoding=None, errors='strict') Return a StreamRecoder instance, a wrapped version of file which provides transparent transcoding. The original file is closed when the wrapped version is closed. Data written to the wrapped file is decoded according to the given data_encoding and then written to the original file as bytes using file_encoding. Bytes read from the original file are decoded according to file_encoding, and the result is encoded using d

imaplib.IMAP4_stream

class imaplib.IMAP4_stream(command) This is a subclass derived from IMAP4 that connects to the stdin/stdout file descriptors created by passing command to subprocess.Popen().

socketserver.BaseServer.get_request()

get_request() Must accept a request from the socket, and return a 2-tuple containing the new socket object to be used to communicate with the client, and the client’s address.

locale.delocalize()

locale.delocalize(string) Converts a string into a normalized number string, following the LC_NUMERIC settings. New in version 3.5.

traceback.StackSummary.extract()

classmethod extract(frame_gen, *, limit=None, lookup_lines=True, capture_locals=False) Construct a StackSummary object from a frame generator (such as is returned by walk_stack() or walk_tb()). If limit is supplied, only this many frames are taken from frame_gen. If lookup_lines is False, the returned FrameSummary objects will not have read their lines in yet, making the cost of creating the StackSummary cheaper (which may be valuable if it may not actually get formatted). If capture_locals

ssl.SSLSocket.pending()

SSLSocket.pending() Returns the number of already decrypted bytes available for read, pending on the connection.

array.array.extend()

array.extend(iterable) Append items from iterable to the end of the array. If iterable is another array, it must have exactly the same type code; if not, TypeError will be raised. If iterable is not an array, it must be iterable and its elements must be the right type to be appended to the array.

typing.AbstractSet

class typing.AbstractSet(Sized, Iterable[T_co], Container[T_co]) A generic version of collections.abc.Set.

curses.window.bkgd()

window.bkgd(ch[, attr]) Set the background property of the window to the character ch, with attributes attr. The change is then applied to every character position in that window: The attribute of every character in the window is changed to the new background attribute. Wherever the former background character appears, it is changed to the new background character.

email

Source code: Lib/email/__init__.py The email package is a library for managing email messages, including MIME and other RFC 2822-based message documents. It is specifically not designed to do any sending of email messages to SMTP (RFC 2821), NNTP, or other servers; those are functions of modules such as smtplib and nntplib. The email package attempts to be as RFC-compliant as possible, supporting in addition to RFC 2822, such MIME-related RFCs as RFC 2045, RFC 2046, RFC 2047, and RFC 2231. The