configparser.ConfigParser.readfp()

readfp(fp, filename=None) Deprecated since version 3.2: Use read_file() instead. Changed in version 3.2: readfp() now iterates on f instead of calling f.readline(). For existing code calling readfp() with arguments which don’t support iteration, the following generator may be used as a wrapper around the file-like object: def readline_generator(f): line = f.readline() while line: yield line line = f.readline() Instead of parser.readfp(f) use parser.read_file(read

email.message.Message.get_content_maintype()

get_content_maintype() Return the message’s main content type. This is the maintype part of the string returned by get_content_type().

mailbox.MMDFMessage.set_flags()

set_flags(flags) Set the flags specified by flags and unset all others. Parameter flags should be the concatenation in any order of zero or more occurrences of each of 'R', 'O', 'D', 'F', and 'A'.

bytearray.center()

bytearray.center(width[, fillbyte]) Return a copy of the object centered in a sequence of length width. Padding is done using the specified fillbyte (default is an ASCII space). For bytes objects, the original sequence is returned if width is less than or equal to len(s). Note The bytearray version of this method does not operate in place - it always produces a new object, even if no changes were made.

xmlrpc.server.CGIXMLRPCRequestHandler.register_multicall_functions()

CGIXMLRPCRequestHandler.register_multicall_functions() Register the XML-RPC multicall function system.multicall.

csv.excel

class csv.excel The excel class defines the usual properties of an Excel-generated CSV file. It is registered with the dialect name 'excel'.

str.title()

str.title() Return a titlecased version of the string where words start with an uppercase character and the remaining characters are lowercase. For example: >>> 'Hello world'.title() 'Hello World' The algorithm uses a simple language-independent definition of a word as groups of consecutive letters. The definition works in many contexts but it means that apostrophes in contractions and possessives form word boundaries, which may not be the desired result: >>> "they're bill

os.access()

os.access(path, mode, *, dir_fd=None, effective_ids=False, follow_symlinks=True) Use the real uid/gid to test for access to path. Note that most operations will use the effective uid/gid, therefore this routine can be used in a suid/sgid environment to test if the invoking user has the specified access to path. mode should be F_OK to test the existence of path, or it can be the inclusive OR of one or more of R_OK, W_OK, and X_OK to test permissions. Return True if access is allowed, False if

classmethod()

classmethod(function) Return a class method for function. A class method receives the class as implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom: class C: @classmethod def f(cls, arg1, arg2, ...): ... The @classmethod form is a function decorator – see the description of function definitions in Function definitions for details. It can be called either on the class (such as C.f()) or on an instance (such as C().f())

faulthandler.cancel_dump_traceback_later()

faulthandler.cancel_dump_traceback_later() Cancel the last call to dump_traceback_later().