email.message.Message.__str__()

__str__() Equivalent to as_string(). Allows str(msg) to produce a string containing the formatted message.

py_compile.main()

py_compile.main(args=None) Compile several source files. The files named in args (or on the command line, if args is None) are compiled and the resulting byte-code is cached in the normal manner. This function does not search a directory structure to locate source files; it only compiles files named explicitly. If '-' is the only parameter in args, the list of files is taken from standard input. Changed in version 3.2: Added support for '-'.

wsgiref.handlers.BaseHandler.origin_server

origin_server This attribute should be set to a true value if the handler’s _write() and _flush() are being used to communicate directly to the client, rather than via a CGI-like gateway protocol that wants the HTTP status in a special Status: header. This attribute’s default value is true in BaseHandler, but false in BaseCGIHandler and CGIHandler.

random.normalvariate()

random.normalvariate(mu, sigma) Normal distribution. mu is the mean, and sigma is the standard deviation.

re.match.lastgroup

match.lastgroup The name of the last matched capturing group, or None if the group didn’t have a name, or if no group was matched at all.

email.headerregistry.Address.display_name

display_name The display name portion of the address, if any, with all quoting removed. If the address does not have a display name, this attribute will be an empty string.

readline.read_history_file()

readline.read_history_file([filename]) Load a readline history file, and append it to the history list. The default filename is ~/.history. This calls read_history() in the underlying library.

ctypes.c_bool

class ctypes.c_bool Represent the C bool datatype (more accurately, _Bool from C99). Its value can be True or False, and the constructor accepts any object that has a truth value.

logging.Handler.removeFilter()

Handler.removeFilter(filt) Removes the specified filter filt from this handler.

smtplib.SMTP.connect()

SMTP.connect(host='localhost', port=0) Connect to a host on a given port. The defaults are to connect to the local host at the standard SMTP port (25). If the hostname ends with a colon (':') followed by a number, that suffix will be stripped off and the number interpreted as the port number to use. This method is automatically invoked by the constructor if a host is specified during instantiation. Returns a 2-tuple of the response code and message sent by the server in its connection respon