email.contentmanager.ContentManager.get_content()

get_content(msg, *args, **kw) Look up a handler function based on the mimetype of msg (see next paragraph), call it, passing through all arguments, and return the result of the call. The expectation is that the handler will extract the payload from msg and return an object that encodes information about the extracted data. To find the handler, look for the following keys in the registry, stopping with the first one found: the string representing the full MIME type (maintype/subtype) the stri

plistlib.dump()

plistlib.dump(value, fp, *, fmt=FMT_XML, sort_keys=True, skipkeys=False) Write value to a plist file. Fp should be a writable, binary file object. The fmt argument specifies the format of the plist file and can be one of the following values: FMT_XML: XML formatted plist file FMT_BINARY: Binary formatted plist file When sort_keys is true (the default) the keys for dictionaries will be written to the plist in sorted order, otherwise they will be written in the iteration order of the dicti

asyncio.start_unix_server()

coroutine asyncio.start_unix_server(client_connected_cb, path=None, *, loop=None, limit=None, **kwds) Start a UNIX Domain Socket server, with a callback for each client connected. See start_server() for information about return value and other details. This function is a coroutine. Availability: UNIX.

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.

winsound.Beep()

winsound.Beep(frequency, duration) Beep the PC’s speaker. The frequency parameter specifies frequency, in hertz, of the sound, and must be in the range 37 through 32,767. The duration parameter specifies the number of milliseconds the sound should last. If the system is not able to beep the speaker, RuntimeError is raised.

doctest.set_unittest_reportflags()

doctest.set_unittest_reportflags(flags) Set the doctest reporting flags to use. Argument flags takes the bitwise-or of option flags. See section Option Flags. Only “reporting flags” can be used. This is a module-global setting, and affects all future doctests run by module unittest: the runTest() method of DocTestCase looks at the option flags specified for the test case when the DocTestCase instance was constructed. If no reporting flags were specified (which is the typical and expected cas