fileinput.filelineno()

fileinput.filelineno() Return the line number in the current file. Before the first line has been read, returns 0. After the last line of the last file has been read, returns the line number of that line within the file.

ctypes.CFUNCTYPE()

ctypes.CFUNCTYPE(restype, *argtypes, use_errno=False, use_last_error=False) The returned function prototype creates functions that use the standard C calling convention. The function will release the GIL during the call. If use_errno is set to True, the ctypes private copy of the system errno variable is exchanged with the real errno value before and after the call; use_last_error does the same for the Windows error code.

tracemalloc.Trace

class tracemalloc.Trace Trace of a memory block. The Snapshot.traces attribute is a sequence of Trace instances. size Size of the memory block in bytes (int). traceback Traceback where the memory block was allocated, Traceback instance.

curses.window.cursyncup()

window.cursyncup() Update the current cursor position of all the ancestors of the window to reflect the current cursor position of the window.

logging.Handler.format()

Handler.format(record) Do formatting for a record - if a formatter is set, use it. Otherwise, use the default formatter for the module.

collections.deque.rotate()

rotate(n) Rotate the deque n steps to the right. If n is negative, rotate to the left. Rotating one step to the right is equivalent to: d.appendleft(d.pop()).

csv.Sniffer.sniff()

sniff(sample, delimiters=None) Analyze the given sample and return a Dialect subclass reflecting the parameters found. If the optional delimiters parameter is given, it is interpreted as a string containing possible valid delimiter characters.

curses.tigetnum()

curses.tigetnum(capname) Return the value of the numeric capability corresponding to the terminfo capability name capname. The value -2 is returned if capname is not a numeric capability, or -1 if it is canceled or absent from the terminal description.

mailbox.Mailbox.__contains__()

__contains__(key) Return True if key corresponds to a message, False otherwise.

string.Formatter.convert_field()

convert_field(value, conversion) Converts the value (returned by get_field()) given a conversion type (as in the tuple returned by the parse() method). The default version understands ‘s’ (str), ‘r’ (repr) and ‘a’ (ascii) conversion types.