ast.copy_location()

ast.copy_location(new_node, old_node) Copy source location (lineno and col_offset) from old_node to new_node if possible, and return new_node.

webbrowser.Error

exception webbrowser.Error Exception raised when a browser control error occurs.

asyncio.set_event_loop_policy()

asyncio.set_event_loop_policy(policy) Set the current event loop policy. If policy is None, the default policy is restored.

html.parser.HTMLParser.handle_data()

HTMLParser.handle_data(data) This method is called to process arbitrary data (e.g. text nodes and the content of <script>...</script> and <style>...</style>).

bytearray.endswith()

bytearray.endswith(suffix[, start[, end]]) Return True if the binary data ends with the specified suffix, otherwise return False. suffix can also be a tuple of suffixes to look for. With optional start, test beginning at that position. With optional end, stop comparing at that position. The suffix(es) to search for may be any bytes-like object.

curses.window.scroll()

window.scroll([lines=1]) Scroll the screen or scrolling region upward by lines lines.

traceback.print_last()

traceback.print_last(limit=None, file=None, chain=True) This is a shorthand for print_exception(sys.last_type, sys.last_value, sys.last_traceback, limit, file, chain). In general it will work only after an exception has reached an interactive prompt (see sys.last_type).

math.fsum()

math.fsum(iterable) Return an accurate floating point sum of values in the iterable. Avoids loss of precision by tracking multiple intermediate partial sums: >>> sum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1]) 0.9999999999999999 >>> fsum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1]) 1.0 The algorithm’s accuracy depends on IEEE-754 arithmetic guarantees and the typical case where the rounding mode is half-even. On some non-Windows builds, the underlying C library uses extended pr

mimetypes.MimeTypes.encodings_map

MimeTypes.encodings_map Dictionary mapping filename extensions to encoding types. This is initially a copy of the global encodings_map defined in the module.

sqlite3.complete_statement()

sqlite3.complete_statement(sql) Returns True if the string sql contains one or more complete SQL statements terminated by semicolons. It does not verify that the SQL is syntactically correct, only that there are no unclosed string literals and the statement is terminated by a semicolon. This can be used to build a shell for SQLite, as in the following example: # A minimal SQLite shell for experiments import sqlite3 con = sqlite3.connect(":memory:") con.isolation_level = None cur = con.curs