pickle.load()

pickle.load(file, *, fix_imports=True, encoding="ASCII", errors="strict") Read a pickled object representation from the open file object file and return the reconstituted object hierarchy specified therein. This is equivalent to Unpickler(file).load(). The protocol version of the pickle is detected automatically, so no protocol argument is needed. Bytes past the pickled object’s representation are ignored. The argument file must have two methods, a read() method that takes an integer argumen

pickle.dumps()

pickle.dumps(obj, protocol=None, *, fix_imports=True) Return the pickled representation of the object as a bytes object, instead of writing it to a file. Arguments protocol and fix_imports have the same meaning as in dump().

pickle.dump()

pickle.dump(obj, file, protocol=None, *, fix_imports=True) Write a pickled representation of obj to the open file object file. This is equivalent to Pickler(file, protocol).dump(obj). 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

PermissionError

exception PermissionError Raised when trying to run an operation without the adequate access rights - for example filesystem permissions. Corresponds to errno EACCES and EPERM.

PendingDeprecationWarning

exception PendingDeprecationWarning Base class for warnings about features which will be deprecated in the future.

pdb.set_trace()

pdb.set_trace() Enter the debugger at the calling stack frame. This is useful to hard-code a breakpoint at a given point in a program, even if the code is not otherwise being debugged (e.g. when an assertion fails).

pdb.runeval()

pdb.runeval(expression, globals=None, locals=None) Evaluate the expression (given as a string or a code object) under debugger control. When runeval() returns, it returns the value of the expression. Otherwise this function is similar to run().

pdb.runcall()

pdb.runcall(function, *args, **kwds) Call the function (a function or method object, not a string) with the given arguments. When runcall() returns, it returns whatever the function call returned. The debugger prompt appears as soon as the function is entered.

pdb.run()

pdb.run(statement, globals=None, locals=None) Execute the statement (given as a string or a code object) under debugger control. The debugger prompt appears before any code is executed; you can set breakpoints and type continue, or you can step through the statement using step or next (all these commands are explained below). The optional globals and locals arguments specify the environment in which the code is executed; by default the dictionary of the module __main__ is used. (See the expl

pdb.post_mortem()

pdb.post_mortem(traceback=None) Enter post-mortem debugging of the given traceback object. If no traceback is given, it uses the one of the exception that is currently being handled (an exception must be being handled if the default is to be used).