Evaluate the query operation for a given left hand side operand.
Note that for the query object q and any object, x, x==q is equivalent to q.evaluate(x) and x!=q is equivalent to q.evaluate(x)==False.
Parameters: |
|
---|---|
Returns: |
|
Examples: |
>>> q = cf.Query('lt', 5.5)
>>> q.evaluate(6)
False
>>> q = cf.Query('wi', (1,2))
>>> array = numpy.arange(4)
>>> array
array([0, 1, 2, 3])
>>> q.evaluate(array)
array([False, True, True, False], dtype=bool)