Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/x/o/xotl.ql-0.2.1dev/tests/test_expressions.py   xotl.ql(Download)
    def test_expression(self):
        from xotl.ql.expressions import (count, ExpressionTree, or_, and_,
                                         pow_, lt, eq, add)
        expr = ((q(1) < 3) & (1 == q("1")) |
                (q("a") + q("b") ** 2 == q("x") + count("y")))
        expected = or_(and_(lt(1, 3), eq(1, "1")),