Trees | Indices | Help |
---|
|
object --+ | dict --+ | _RestrictedDict
Dict which only allows sequences of given length as values (PRIVATE).
This simple subclass of the Python dictionary is used in the SeqRecord object for holding per-letter-annotations. This class is intended to prevent simple errors by only allowing python sequences (e.g. lists, strings and tuples) to be stored, and only if their length matches that expected (the length of the SeqRecord's seq object). It cannot however prevent the entries being edited in situ (for example appending entries to a list).
|
|||
new empty dictionary |
|
||
|
|||
None |
|
||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Create an EMPTY restricted dictionary.
|
x[i]=y
|
Update D from dict/iterable E and F. If E has a .keys() method, does: for k in E: D[k] = E[k] If E 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]
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Nov 26 15:45:53 2010 | http://epydoc.sourceforge.net |