| Trees | Indices | Help |
|
|---|
|
|
object --+
|
dict --+
|
EquivalenceAssignment
A special kind of dict that stores not only a mapping from keys to values, but also equivalence classes of keys. Manages the equivalence classes so that values get assigned to all the keys as soon as one of them is given a value.
|
|||
| IncompatibleAssignmentError | |||
|
|||
new empty dictionary |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
| None |
|
||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
x[i]=y
|
When two values are fighting for the same key, this method decides which to pick, or raises an exception if the conflict cannot be resolved (i.e. incompatible values). By default this raises an exception if the values are not equal. Should be overridden by subclasses. |
Update D from dict/iterable E and F. If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
|
str(x)
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:56 2012 | http://epydoc.sourceforge.net |