For a scalar valued Constant object one can simply call float to get the value
a = Constant(1.0)
print float(a)
1.0
but for a vector the situation is a little more tricky
a = Constant([1.0,1.0])
print [float(item) for item in a]
TypeError: float returned non-float (type Indexed)
Does anyone have a way to get the values out of the vector Constant?