Bases: _abcoll.MutableMapping
A dictionary-like object with attributes.
Initialization
Parameters : |
|
---|
Return a deep copy.
Equivalent to copy.deepcopy(d).
Returns : |
|
---|
Examples
>>> d.copy()
True if two instances are logically equal, False otherwise.
Parameters : |
|
---|---|
Returns : |
|
Examples
Return a list of the key names which match a regular expression.
Parameters : |
|
---|---|
Returns : |
|
Examples
>>> d.keys()
['dim2', 'dim0', 'dim1', 'aux0', 'cm0']
>>> d.get_keys()
['dim2', 'dim0', 'dim1', 'aux0', 'cm0']
>>> d.get_keys('dim')
['dim2', 'dim0', 'dim1']
>>> d.get_keys('^aux|^dim')
['dim2', 'dim0', 'dim1', 'aux0']
>>> d.get_keys('dim[1-9]')
['dim2', 'dim1']