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

All Samples(7)  |  Call(4)  |  Derive(0)  |  Import(3)

src/x/o/xotl.ql-0.2.1dev/tests/test_this_queries.py   xotl.ql(Download)
def test_for_generator_as_sole_argument():
    from xotl.ql.core import QueryObject
    from xotl.ql.expressions import all_
    query = these(parent for parent in this
                  if all_(child.age < 5 for child in parent.children)
                  if all_(parent.children, this.age < 5)
                  if all_(this.children, this.age < 5))

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

src/x/o/xotl.ql-0.2.1dev/tests/test_translate.py   xotl.ql(Download)
def test_all_pred():
    from xotl.ql.expressions import all_
    from xotl.ql.translation.py import naive_translation
    query = these(parent
                  for parent in Person
                  if parent.children
                  if all_((30 < child.age) & (child.age < 35) for child in parent.children))