param.ParamOverrides#

class param.ParamOverrides(overridden, dict_, allow_extra_keywords=False)[source]#

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.

__init__(overridden, dict_, allow_extra_keywords=False)[source]#

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.

Methods

__init__(overridden, dict_[, ...])

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).

clear()

copy()

extra_keywords()

Return a dictionary containing items from the originally supplied dict_ whose names are not parameters of the overridden object.

fromkeys([value])

Create a new dictionary with keys from iterable and values set to value.

get(key[, default])

Return the value for key if key is in the dictionary, else default.

items()

keys()

param_keywords()

Return a dictionary containing items from the originally supplied dict_ whose names are parameters of the overridden object (i.e.

pop(k[,d])

If key is not found, default is returned if given, otherwise KeyError is raised

popitem()

Remove and return a (key, value) pair as a 2-tuple.

setdefault(key[, default])

Insert key with a value of default if key is not in the dictionary.

update([E, ]**F)

If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]

values()