Package param :: Module parameterized :: Class ParamOverrides
[hide private]
[frames] | no frames]

Class ParamOverrides

source code


A dictionary that returns the attribute of a specified object if that attribute is not present in itself.

Used to override the parameters of an object.

Instance Methods [hide private]
 
__init__(self, overridden, dict_, allow_extra_keywords=False)
If allow_extra_keywords is False, then all keys in the supplied dict_ must match parameter names on the overridden object (otherwise a warning will be printed).
source code
 
extra_keywords(self)
Return a dictionary containing items from the originally supplied dict_ whose names are not parameters of the overridden object.
source code
 
__missing__(self, name) source code
 
__repr__(self)
x.__repr__() <==> repr(x)
source code
 
__getattr__(self, name) source code
 
__setattr__(self, name, val)
x.__setattr__('name', value) <==> x.name = value
source code
 
_check_params(self, params)
Print a warning if params contains something that is not a Parameter of the overridden object.
source code
 
_extract_extra_keywords(self, params)
Return any items in params that are not also parameters of the overridden object.
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __setitem__, __sizeof__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, overridden, dict_, allow_extra_keywords=False)
(Constructor)

source code 


If allow_extra_keywords is False, then all keys in the
supplied dict_ must match parameter names on the overridden
object (otherwise a warning will be printed).

If allow_extra_keywords is True, then any items in the
supplied dict_ that are not also parameters of the overridden
object will be available via the extra_keywords() method.

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
x.__repr__() <==> repr(x)
Overrides: object.__repr__
(inherited documentation)

__setattr__(self, name, val)

source code 
x.__setattr__('name', value) <==> x.name = value
Overrides: object.__setattr__
(inherited documentation)