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

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

src/p/r/Products.AdvancedQuery-3.0.3/Products/AdvancedQuery/sorting.py   Products.AdvancedQuery(Download)
from BTrees.OOBTree import OOBTree
 
from AdvancedQuery import _notPassed, intersection
 
def sort(seq, sortSpecs, withSortValue):
      else: items = sortIndex._index.keys()
      for i in items:
        ids = intersection(seq, _load(i))
        if ids:
          handled.update(ids); hn += len(ids)

src/p/r/Products.AdvancedQuery-3.0.3/Products/AdvancedQuery/ranking.py   Products.AdvancedQuery(Download)
from BTrees.IIBTree import difference
 
from AdvancedQuery import _BaseQuery, LiteralResultSet, And, intersection
from sorting import Sorter
from eval import _eval