pickle.Pickler

class pickle.Pickler(file, protocol=None, *, fix_imports=True) This takes a binary file for writing a pickle data stream. The optional protocol argument, an integer, tells the pickler to use the given protocol; supported protocols are 0 to HIGHEST_PROTOCOL. If not specified, the default is DEFAULT_PROTOCOL. If a negative number is specified, HIGHEST_PROTOCOL is selected. The file argument must have a write() method that accepts a single bytes argument. It can thus be an on-disk file opened f

__future__

Source code: Lib/__future__.py __future__ is a real module, and serves three purposes: To avoid confusing existing tools that analyze import statements and expect to find the modules they’re importing. To ensure that future statements run under releases prior to 2.1 at least yield runtime exceptions (the import of __future__ will fail, because there was no module of that name prior to 2.1). To document when incompatible changes were introduced, and when they will be — or were — made mandatory.

inspect.istraceback()

inspect.istraceback(object) Return true if the object is a traceback.

aifc.aifc.readframes()

aifc.readframes(nframes) Read and return the next nframes frames from the audio file. The returned data is a string containing for each frame the uncompressed samples of all channels.

cmd.Cmd.preloop()

Cmd.preloop() Hook method executed once when cmdloop() is called. This method is a stub in Cmd; it exists to be overridden by subclasses.

curses.window.getmaxyx()

window.getmaxyx() Return a tuple (y, x) of the height and width of the window.

tarfile.TarInfo.gname

TarInfo.gname Group name.

http.client.IncompleteRead

exception http.client.IncompleteRead A subclass of HTTPException.

decimal.Decimal.canonical()

canonical() Return the canonical encoding of the argument. Currently, the encoding of a Decimal instance is always canonical, so this operation returns its argument unchanged.

types.MappingProxyType.copy()

copy() Return a shallow copy of the underlying mapping.