pdb.Pdb

class pdb.Pdb(completekey='tab', stdin=None, stdout=None, skip=None, nosigint=False) Pdb is the debugger class. The completekey, stdin and stdout arguments are passed to the underlying cmd.Cmd class; see the description there. The skip argument, if given, must be an iterable of glob-style module name patterns. The debugger will not step into frames that originate in a module that matches one of these patterns. [1] By default, Pdb sets a handler for the SIGINT signal (which is sent when the u

sys.thread_info

sys.thread_info A struct sequence holding information about the thread implementation. Attribute Explanation name Name of the thread implementation: 'nt': Windows threads 'pthread': POSIX threads 'solaris': Solaris threads lock Name of the lock implementation: 'semaphore': a lock uses a semaphore 'mutex+cond': a lock uses a mutex and a condition variable None if this information is unknown version Name and version of the thread library. It is a string, or None if these informatio

multiprocessing.Connection

class multiprocessing.Connection send(obj) Send an object to the other end of the connection which should be read using recv(). The object must be picklable. Very large pickles (approximately 32 MB+, though it depends on the OS) may raise a ValueError exception. recv() Return an object sent from the other end of the connection using send(). Blocks until there its something to receive. Raises EOFError if there is nothing left to receive and the other end was closed. fileno() Re

unittest.TestCase.shortDescription()

shortDescription() Returns a description of the test, or None if no description has been provided. The default implementation of this method returns the first line of the test method’s docstring, if available, or None. Changed in version 3.1: In 3.1 this was changed to add the test name to the short description even in the presence of a docstring. This caused compatibility issues with unittest extensions and adding the test name was moved to the TextTestResult in Python 3.2.

os.statvfs()

os.statvfs(path) Perform a statvfs() system call on the given path. The return value is an object whose attributes describe the filesystem on the given path, and correspond to the members of the statvfs structure, namely: f_bsize, f_frsize, f_blocks, f_bfree, f_bavail, f_files, f_ffree, f_favail, f_flag, f_namemax. Two module-level constants are defined for the f_flag attribute’s bit-flags: if ST_RDONLY is set, the filesystem is mounted read-only, and if ST_NOSUID is set, the semantics of se

pathlib.Path.mkdir()

Path.mkdir(mode=0o777, parents=False, exist_ok=False) Create a new directory at this given path. If mode is given, it is combined with the process’ umask value to determine the file mode and access flags. If the path already exists, FileExistsError is raised. If parents is true, any missing parents of this path are created as needed; they are created with the default permissions without taking mode into account (mimicking the POSIX mkdir -p command). If parents is false (the default), a miss

turtle.onrelease()

turtle.onrelease(fun, btn=1, add=None) Parameters: fun – a function with two arguments which will be called with the coordinates of the clicked point on the canvas num – number of the mouse-button, defaults to 1 (left mouse button) add – True or False – if True, a new binding will be added, otherwise it will replace a former binding Bind fun to mouse-button-release events on this turtle. If fun is None, existing bindings are removed. >>> class MyTurtle(Turtle): ... def gl

traceback.TracebackException

class traceback.TracebackException(exc_type, exc_value, exc_traceback, *, limit=None, lookup_lines=True, capture_locals=False) Capture an exception for later rendering. limit, lookup_lines and capture_locals are as for the StackSummary class. Note that when locals are captured, they are also shown in the traceback. __cause__ A TracebackException of the original __cause__. __context__ A TracebackException of the original __context__. __suppress_context__ The __suppress_context_

curses.start_color()

curses.start_color() Must be called if the programmer wants to use colors, and before any other color manipulation routine is called. It is good practice to call this routine right after initscr(). start_color() initializes eight basic colors (black, red, green, yellow, blue, magenta, cyan, and white), and two global variables in the curses module, COLORS and COLOR_PAIRS, containing the maximum number of colors and color-pairs the terminal can support. It also restores the colors on the term

email.header.Header.__str__()

__str__() Returns an approximation of the Header as a string, using an unlimited line length. All pieces are converted to unicode using the specified encoding and joined together appropriately. Any pieces with a charset of 'unknown-8bit' are decoded as ASCII using the 'replace' error handler. Changed in version 3.2: Added handling for the 'unknown-8bit' charset.