get_PO_class_attributes(self,
module,
class_attributes,
processed_modules,
exclude=())
| source code
|
Recursively search module and get attributes of Parameterized classes within it.
class_attributes is a dictionary {module.path.and.Classname: state}, where state
is the dictionary {attribute: value}.
Something is considered a module for our purposes if inspect says it's a module,
and it defines __all__. We only search through modules listed in __all__.
Keeps a list of processed modules to avoid looking at the same one
more than once (since e.g. __main__ contains __main__ contains
__main__...)
Modules can be specifically excluded if listed in exclude.
|