doctest.run_docstring_examples()

doctest.run_docstring_examples(f, globs, verbose=False, name="NoName", compileflags=None, optionflags=0) Test examples associated with object f; for example, f may be a string, a module, a function, or a class object. A shallow copy of dictionary argument globs is used for the execution context. Optional argument name is used in failure messages, and defaults to "NoName". If optional argument verbose is true, output is generated even if there are no failures. By default, output is generated

uuid.uuid5()

uuid.uuid5(namespace, name) Generate a UUID based on the SHA-1 hash of a namespace identifier (which is a UUID) and a name (which is a string).

fileinput.isfirstline()

fileinput.isfirstline() Returns true if the line just read is the first line of its file, otherwise returns false.

mimetypes.MimeTypes.guess_type()

MimeTypes.guess_type(url, strict=True) Similar to the guess_type() function, using the tables stored as part of the object.

os.sched_param

class os.sched_param(sched_priority) This class represents tunable scheduling parameters used in sched_setparam(), sched_setscheduler(), and sched_getparam(). It is immutable. At the moment, there is only one possible parameter: sched_priority The scheduling priority for a scheduling policy.

os.linesep

os.linesep The string used to separate (or, rather, terminate) lines on the current platform. This may be a single character, such as '\n' for POSIX, or multiple characters, for example, '\r\n' for Windows. Do not use os.linesep as a line terminator when writing files opened in text mode (the default); use a single '\n' instead, on all platforms.

logging.Logger.removeHandler()

Logger.removeHandler(hdlr) Removes the specified handler hdlr from this logger.

inspect.trace()

inspect.trace(context=1) Return a list of frame records for the stack between the current frame and the frame in which an exception currently being handled was raised in. The first entry in the list represents the caller; the last entry represents where the exception was raised. Changed in version 3.5: A list of named tuples FrameInfo(frame, filename, lineno, function, code_context, index) is returned.

xml.dom.getDOMImplementation()

xml.dom.getDOMImplementation(name=None, features=()) Return a suitable DOM implementation. The name is either well-known, the module name of a DOM implementation, or None. If it is not None, imports the corresponding module and returns a DOMImplementation object if the import succeeds. If no name is given, and if the environment variable PYTHON_DOM is set, this variable is used to find the implementation. If name is not given, this examines the available implementations to find one with the

dict.values()

values() Return a new view of the dictionary’s values. See the documentation of view objects.