Home | Trees | Indices | Help |
|
---|
|
object --+ | parameter.Parameter --+ | CompositeParameter
`Parameter` that consists of more parameters. This parameter matches lists, tuples and dicts, of which all elements match the list of child parameters. When this parameter is written to a dict, its child parameters are expanded. E.g. for a composite parameter with childs 'x' and 'y', a read value of (1, 3) and a dict d of {}; after writing to d, d will equal {x:1, y:3}, and not {{x:1, y:3}}. Methods: - all of `Parameter`
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
Construct a `CompositeParameter`. Parameters: `name` :: string name of the parameter, used for keyword arguments. Must be unique. `params` :: (Parameter...) the child parameters of the composite `matcher` :: f(value) -> matched::bool :: (type...) = (tuple, list, dict) :: type the parameter will match only if this matcher matches the arg and its child args match the elements of the arg. It is unlikely you'll need a value other than the default. `default` default value for the parameter, omit if param has no default
|
Adds the last read argument value to a dictionary. Parameters: `kwargs` :: {name::string : value} the dictionary to add the last value and the parameter name to Preconditions: 1. the parameter matched on the last read
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Mon Jul 19 11:49:30 2010 | http://epydoc.sourceforge.net |