>>def lt(*fields):
>>    return collect(fields, lambda x, y: x < y)

>>def gt(*fields):
>>    return collect(fields, lambda x, y: x > y)

>>def gte(*fields):
>>    """ gte(field, ...) -> rule
>>    """
>>    return collect(fields, lambda x, y: x >= y)

>>etc...

>DRY ? ;-)

Do you mean by the doc string or the fact that I'm having to redeclare
built-in operations?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to