SciPy.org SciPy 0.6.0 API Documentation Generated by Endo, 2007-10-17

Stores information about compiled functions both in cache and on disk.

catalog stores (code, list_of_function) pairs so that all the functions that have been compiled for code are available for calling (usually in inline or blitz).

catalog keeps a dictionary of previously accessed code values cached for quick access. It also handles the looking up of functions compiled in previously called Python sessions on disk in function catalogs. catalog searches the directories in the PYTHONCOMPILED environment variable in order loading functions that correspond to the given code fragment. A default directory is also searched for catalog functions. On unix, the default directory is usually '~/.pythonxx_compiled' where xx is the version of Python used. On windows, it is the directory returned by temfile.gettempdir(). Functions closer to the front are of the variable list are guaranteed to be closer to the front of the function list so that they will be called first. See get_cataloged_functions() for more info on how the search order is traversed.

Catalog also handles storing information about compiled functions to a catalog. When writing this information, the first writable catalog file in PYTHONCOMPILED path is used. If a writable catalog is not found, it is written to the catalog in the default directory. This directory should always be writable.

Method summary

Methods