Return a new comparison object with a new left hand side operand attribute to be used during evaluation.
If another attribute has previously been specified, then the new attribute is considered to be an attribute of the existing attribute.
Parameters : |
|
---|---|
Returns : |
|
Examples
>>> c = cf.eq(2001)
>>> c
<CF Comparison: (eq 2001)>
>>> c = c.addattr('year')
>>> c
<CF Comparison: year(eq 2001)>
>>> c = cf.lt(2)
>>> c = c.addattr('A')
>>> c = c.addattr('B')
>>> c
<CF Comparison: A.B(lt 2)>
>>> c = c.addattr('C')
>>> c
<CF Comparison: A.B.C(lt 2)>