asyncio.Future.set_exception()

set_exception(exception) Mark the future done and set an exception. If the future is already done when this method is called, raises InvalidStateError.

xml.parsers.expat.xmlparser.CharacterDataHandler()

xmlparser.CharacterDataHandler(data) Called for character data. This will be called for normal character data, CDATA marked content, and ignorable whitespace. Applications which must distinguish these cases can use the StartCdataSectionHandler, EndCdataSectionHandler, and ElementDeclHandler callbacks to collect the required information.

re.finditer()

re.finditer(pattern, string, flags=0) Return an iterator yielding match objects over all non-overlapping matches for the RE pattern in string. The string is scanned left-to-right, and matches are returned in the order found. Empty matches are included in the result unless they touch the beginning of another match.

datetime.time.strftime()

time.strftime(format) Return a string representing the time, controlled by an explicit format string. For a complete list of formatting directives, see strftime() and strptime() Behavior.

os.terminal_size.lines

lines Height of the terminal window in characters.

os.fstat()

os.fstat(fd) Get the status of the file descriptor fd. Return a stat_result object. As of Python 3.3, this is equivalent to os.stat(fd). See also The stat() function.

operator.is_()

operator.is_(a, b) Return a is b. Tests object identity.

readline.set_completion_display_matches_hook()

readline.set_completion_display_matches_hook([function]) Set or remove the completion display function. If function is specified, it will be used as the new completion display function; if omitted or None, any completion display function already installed is removed. This sets or clears the rl_completion_display_matches_hook callback in the underlying library. The completion display function is called as function(substitution, [matches], longest_match_length) once each time matches need to b

readline.redisplay()

readline.redisplay() Change what’s displayed on the screen to reflect the current contents of the line buffer. This calls rl_redisplay() in the underlying library.

inspect.getdoc()

inspect.getdoc(object) Get the documentation string for an object, cleaned up with cleandoc(). If the documentation string for an object is not provided and the object is a class, a method, a property or a descriptor, retrieve the documentation string from the inheritance hierarchy. Changed in version 3.5: Documentation strings are now inherited if not overridden.