datetime.date.min

date.min The earliest representable date, date(MINYEAR, 1, 1).

iterator.__iter__()

iterator.__iter__() Return the iterator object itself. This is required to allow both containers and iterators to be used with the for and in statements. This method corresponds to the tp_iter slot of the type structure for Python objects in the Python/C API.

Develop with asyncio

Asynchronous programming is different than classical “sequential” programming. This page lists common traps and explains how to avoid them. 1. Debug mode of asyncio The implementation of asyncio has been written for performance. In order to ease the development of asynchronous code, you may wish to enable debug mode. To enable all debug checks for an application: Enable the asyncio debug mode globally by setting the environment variable PYTHONASYNCIODEBUG to 1, or by calling AbstractEventLoop.s

imaplib.IMAP4.getacl()

IMAP4.getacl(mailbox) Get the ACLs for mailbox. The method is non-standard, but is supported by the Cyrus server.

tempfile.tempdir

tempfile.tempdir When set to a value other than None, this variable defines the default value for the dir argument to all the functions defined in this module. If tempdir is unset or None at any call to any of the above functions except gettempprefix() it is initialized following the algorithm described in gettempdir().

symtable.Function.get_locals()

get_locals() Return a tuple containing names of locals in this function.

array.array.itemsize

array.itemsize The length in bytes of one array item in the internal representation.

mimetypes.encodings_map

mimetypes.encodings_map Dictionary mapping filename extensions to encoding types.

parser.isexpr()

parser.isexpr(st) When st represents an 'eval' form, this function returns true, otherwise it returns false. This is useful, since code objects normally cannot be queried for this information using existing built-in functions. Note that the code objects created by compilest() cannot be queried like this either, and are identical to those created by the built-in compile() function.

pathlib.Path.read_text()

Path.read_text(encoding=None, errors=None) Return the decoded contents of the pointed-to file as a string: >>> p = Path('my_text_file') >>> p.write_text('Text file contents') 18 >>> p.read_text() 'Text file contents' The optional parameters have the same meaning as in open(). New in version 3.5.