| Trees | Indices | Help |
|
|---|
|
|
Supports pickling of Parameterized class attributes for a given module.
When requested to be pickled, stores a module's PO classes' attributes, and any given startup_commands. On unpickling, executes the startup commands and sets the class attributes.
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
do_not_restore = list() -> new list list(sequence) -> new list initialized from sequence's items |
|||
param_name_changes = dict() -> new empty dictionary. |
|||
|
|||
|
Inherited from |
|||
|
|||
module: a module object, such as topo Any submodules listed by name in exclusions will not have their classes' attributes saved.
|
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. |
|
|||
do_not_restorelist() -> new list list(sequence) -> new list initialized from sequence's items
|
param_name_changes
dict() -> new empty dictionary.
dict(mapping) -> new dictionary initialized from a mapping object's
(key, value) pairs.
dict(seq) -> new dictionary initialized as if via:
d = {}
for k, v in seq:
d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Aug 5 14:59:26 2010 | http://epydoc.sourceforge.net |