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.

xml.sax.handler.ErrorHandler.warning()

ErrorHandler.warning(exception) Called when the parser presents minor warning information to the application. Parsing is expected to continue when this method returns, and document information will continue to be passed to the application. Raising an exception in this method will cause parsing to end.

concurrent.futures.Future.set_result()

set_result(result) Sets the result of the work associated with the Future to result. This method should only be used by Executor implementations and unit tests.

traceback.TracebackException.text

text For syntax errors - the text where the error occurred.

parser.st2tuple()

parser.st2tuple(st, line_info=False, col_info=False) This function accepts an ST object from the caller in st and returns a Python tuple representing the equivalent parse tree. Other than returning a tuple instead of a list, this function is identical to st2list(). If line_info is true, line number information will be included for all terminal tokens as a third element of the list representing the token. This information is omitted if the flag is false or omitted.

str.zfill()

str.zfill(width) Return a copy of the string left filled with ASCII '0' digits to make a string of length width. A leading sign prefix ('+'/'-') is handled by inserting the padding after the sign character rather than before. The original string is returned if width is less than or equal to len(s). For example: >>> "42".zfill(5) '00042' >>> "-42".zfill(5) '-0042'