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_this_queries.py   xotl.ql(Download)
    def _test_class(self, Person):
        from xotl.ql.expressions import is_instance
 
        q = these((who for who in Person if who.age > 30),
                  limit=100)
        # We assume that Person has been thesefied with thesefy('Person')
        who = domain = this('Person')
        q1 = these(w for w in domain
                   if is_instance(w, Person)
                   if w.age > 30)
 
        is_filter = is_instance(who, Person)
        age_filter = who.age > 30
        with context(UNPROXIFING_CONTEXT):

src/x/o/xotl.ql-0.2.1dev/tests/test_expressions.py   xotl.ql(Download)
            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
        from xotl.ql.expressions import not_