|
pyCAPS
pyCAPS: A Python Extension Module for CAPS
|
Defines a Sequence of CAPS Attribute Value Objects. More...


Public Member Functions | |
| def | create (self, name, data, overwrite=False) |
| Create an attribute (that is meta-data) to the CAPS Object. More... | |
Public Member Functions inherited from Sequence | |
| def | keys (self) |
| Returns the keys of the Sequence. | |
| def | values (self) |
| Returns the values of the Sequence. | |
| def | items (self) |
| Returns the items of the Sequence. | |
Defines a Sequence of CAPS Attribute Value Objects.
| def create | ( | self, | |
| name, | |||
| data, | |||
overwrite = False |
|||
| ) |
Create an attribute (that is meta-data) to the CAPS Object.
See example
| name | Name used to define the attribute. |
| data | Initial data value(s) for the attribute. Note that type casting in done automatically based on the determined type of the Python object. |
| overwrite | Flag to overwrite any existing attribute with the same 'name' |