blpapi.ConstantList
- class blpapi.ConstantList(handle, sessions)
Represents a list of schema enumeration constants.
As well as the list of
Constant
objects, this class also provides access to the symbolic name, description and status of the list as a whole. AllConstant
objects in aConstantList
are of the sameDataType
.ConstantList
objects are read-only.Application clients never create
ConstantList
object directly; applications will typically work withConstantList
objects returned by otherblpapi
components.- __iter__()
- Return type
- Returns
Iterator over constants contained in this
ConstantList
- datatype()
- Returns
Data type used to represent the value of this constant
- Return type
The possible return values are enumerated in
DataType
.
- description()
- Returns
Human readable description of this
ConstantList
- Return type
- getConstant(name)
- Parameters
- Return type
- Returns
Constant with the specified
name
- Raises
NotFoundException – If this
ConstantList
does not contain aConstant
with the specifiedname
- getConstantAt(position)
- Parameters
position (
int
) – Position of the requested constant in the list- Return type
- Returns
Constant at the specified
position
.- Raises
IndexOutOfRangeException – If
position
is not in the range from0
tonumConstants() - 1
.
- hasConstant(name)
- name()
- Returns
Symbolic name of this
ConstantList
- Return type
- status()
- Returns
Status of this
ConstantList
- Return type
The possible return values are enumerated in
SchemaStatus