cf.Query.attr

Query.attr

The object attribute on which to apply the query condition.

For compound queries attr is always (), even if some of the constituent conditions have a different value.

See also

addattr

Examples

>>> q = cf.Query('ge', 4)
>>> print(q.attr)
()
>>> r = cf.Query('le', 6, attr='year')
>>> r.attr
('year',)
>>> (q | r).attr
()