curses.textpad.Textbox.gather()

gather() Return the window contents as a string; whether blanks in the window are included is affected by the stripspaces member.

http.cookiejar.Cookie.port

Cookie.port String representing a port or a set of ports (eg. ‘80’, or ‘80,8080’), or None.

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

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.

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

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).

curses.window.scroll()

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

curses.window.syncok()

window.syncok(flag) If called with flag set to True, then syncup() is called automatically whenever there is a change in the window.

codecs.IncrementalEncoder.setstate()

IncrementalEncoder.setstate(state) Set the state of the encoder to state. state must be an encoder state returned by getstate().

logging.handlers.QueueHandler.prepare()

prepare(record) Prepares a record for queuing. The object returned by this method is enqueued. The base implementation formats the record to merge the message and arguments, and removes unpickleable items from the record in-place. You might want to override this method if you want to convert the record to a dict or JSON string, or send a modified copy of the record while leaving the original intact.