queue.PriorityQueue

class queue.PriorityQueue(maxsize=0) Constructor for a priority queue. maxsize is an integer that sets the upperbound limit on the number of items that can be placed in the queue. Insertion will block once this size has been reached, until queue items are consumed. If maxsize is less than or equal to zero, the queue size is infinite. The lowest valued entries are retrieved first (the lowest valued entry is the one returned by sorted(list(entries))[0]). A typical pattern for entries is a tupl

queue.LifoQueue

class queue.LifoQueue(maxsize=0) Constructor for a LIFO queue. maxsize is an integer that sets the upperbound limit on the number of items that can be placed in the queue. Insertion will block once this size has been reached, until queue items are consumed. If maxsize is less than or equal to zero, the queue size is infinite.

queue.Full

exception queue.Full Exception raised when non-blocking put() (or put_nowait()) is called on a Queue object which is full.

queue.Empty

exception queue.Empty Exception raised when non-blocking get() (or get_nowait()) is called on a Queue object which is empty.

pyclbr.readmodule_ex()

pyclbr.readmodule_ex(module, path=None) Like readmodule(), but the returned dictionary, in addition to mapping class names to class descriptor objects, also maps top-level function names to function descriptor objects. Moreover, if the module being read is a package, the key '__path__' in the returned dictionary has as its value a list which contains the package search path.

py_compile.main()

py_compile.main(args=None) Compile several source files. The files named in args (or on the command line, if args is None) are compiled and the resulting byte-code is cached in the normal manner. This function does not search a directory structure to locate source files; it only compiles files named explicitly. If '-' is the only parameter in args, the list of files is taken from standard input. Changed in version 3.2: Added support for '-'.

py_compile.compile()

py_compile.compile(file, cfile=None, dfile=None, doraise=False, optimize=-1) Compile a source file to byte-code and write out the byte-code cache file. The source code is loaded from the file named file. The byte-code is written to cfile, which defaults to the PEP 3147/PEP 488 path, ending in .pyc. For example, if file is /foo/bar/baz.py cfile will default to /foo/bar/__pycache__/baz.cpython-32.pyc for Python 3.2. If dfile is specified, it is used as the name of the source file in error mess

py_compile.PyCompileError

exception py_compile.PyCompileError Exception raised when an error occurs while attempting to compile the file.

pydoc

Source code: Lib/pydoc.py The pydoc module automatically generates documentation from Python modules. The documentation can be presented as pages of text on the console, served to a Web browser, or saved to HTML files. For modules, classes, functions and methods, the displayed documentation is derived from the docstring (i.e. the __doc__ attribute) of the object, and recursively of its documentable members. If there is no docstring, pydoc tries to obtain a description from the block of comment

pyclbr.Class.module

Class.module The name of the module defining the class described by the class descriptor.