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

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

src/x/o/xotl.ql-0.2.1dev/tests/test_design_decision.py   xotl.ql(Download)
def test_complex_query_building_with_dict():
    from xotl.ql.expressions import min_, max_
    with bubbling() as current:
        d = {parent.age: (min_(child.age), max_(child.age))
             for parent in this('parent')
    ok(parent.age)  # The key of the dict is the top-most expression
    ok(max_(child.age))
    ok(min_(child.age))
    ok(child.age < 5)
    ok((parent.age > 32) & parent.children)

src/x/o/xotl.ql-0.2.1dev/tests/test_expressions.py   xotl.ql(Download)
            # Py3k
            from operator import truediv as div
        from xotl.ql.expressions import count, min_, max_, all_, any_, length
        from xotl.ql.expressions import contains, is_instance, invoke, new
        from xotl.ql.expressions import startswith, endswith