5.1.2 PluginDescriptor

A PluginDescriptor object keeps the status information of a plugin file. It has the following attributes:

filename
The absolute file name of the plugin.

filedesc
A file descriptor tuple (suffix, mode, type) as returned by the get_suffixes() function in the imp module (type is one of imp.PY_SOURCE, imp.PY_COMPILED or imp.C_EXTENSION).

objcount
Number of imported objects (usually this should be number of classes + number of functions).

classcount
Number of imported classes.

funccount
Number of imported functions.

status
Status flags. If everything is ok the status is STATUS_OK, otherwise its a combination of STATUS_EXCEPTION and STATUS_DUPLICATE.

traceback
A string containing the traceback message (if the STATUS_EXCEPTION flag is set).

objdescs
A list of object descriptors of all imported objects.

module
The module object of the imported plugin.

modulename
The name of the plugin module.