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

All Samples(41)  |  Call(20)  |  Derive(0)  |  Import(21)

src/b/t/BTrees-4.0.8/BTrees/check.py   BTrees(Download)
"""
 
from BTrees.IFBTree import IFBTree, IFBucket, IFSet, IFTreeSet
from BTrees.IFBTree import IFBTreePy, IFBucketPy, IFSetPy, IFTreeSetPy
from BTrees.IIBTree import IIBTree, IIBucket, IISet, IITreeSet

src/h/u/hurry.query-1.1.1/src/hurry/query/query.py   hurry.query(Download)
$Id: query.py 114320 2010-07-08 08:26:20Z janwijbrand $
"""
from BTrees.IFBTree import weightedIntersection, union, difference, IFBTree
from zope.catalog.catalog import ResultSet
from zope.catalog.field import IFieldIndex
            # no applicable terms at all
            # XXX should this be possible?
            return IFBTree()
 
        results.sort()
            # no applicable terms at all
            # XXX should this be possible?
            return IFBTree()
 
        result = results.pop(0)
        # IntIds datastructure but that would break abstraction..
        intids = getUtility(IIntIds)
        result = IFBTree()
        for uid in intids:
            result.insert(uid, 0)
        if not results:
            # no applicable terms at all
            return IFBTree()
 
        result = results.pop(0)

src/d/m/dm.incrementalsearch-2.0/dm/incrementalsearch/__init__.py   dm.incrementalsearch(Download)
from BTrees.OIBTree import OIBTree, OIBucket, OISet, OITreeSet
from BTrees.IIBTree import IIBTree, IIBucket, IISet, IITreeSet
from BTrees.IFBTree import IFBTree, IFBucket, IFSet, IFTreeSet
from BTrees.LOBTree import LOBTree, LOBucket, LOSet, LOTreeSet
from BTrees.OLBTree import OLBTree, OLBucket, OLSet, OLTreeSet
  type(OIBTree()) : (60, 250, OBJECT,),
  type(IIBTree()) : (120, 500, INT,),
  type(IFBTree()) : (120, 500, INT,),
  type(LOBTree()) : (60, 500, LONG,),
  type(OLBTree()) : (60, 250, OBJECT,),

src/z/3/z3c.indexer-0.6.1/src/z3c/indexer/performance.py   z3c.indexer(Download)
import zope.lifecycleevent
import zope.location.interfaces
from BTrees.IFBTree import difference, IFBTree
from zope.index.text.textindex import TextIndex as ZTextIndex
 
 
    # and remove the given result
    result = IFBTree()
    for uid in intids:
        result.insert(uid, 0)

src/c/o/collective.btrees-1.1/collective/btrees/adapters.py   collective.btrees(Download)
 
try:
    from BTrees.IFBTree import IFBTree
    IFBTree  # pyflakes
except ImportError:

src/z/o/zope.index-4.0.1/src/zope/index/text/tests/test_setops.py   zope.index(Download)
    def test_identity_tree(self):
        from BTrees.IFBTree import IFBTree
        x = IFBTree([(1, 2)])
        result = self._callFUT([(x, 1)])
        self.assertEqual(len(result), 1)
    def test_scalar_multiply_tree(self):
        from BTrees.IFBTree import IFBTree
        x = IFBTree([(1, 2), (2, 3), (3, 4)])
        allkeys = list(x.keys())
        for factor in 0, 1, 5, 10:
    def test_pairs(self):
        from BTrees.IFBTree import IFBTree
        from BTrees.IFBTree import IFBucket
        t1 = IFBTree([(1, 10), (3, 30), (7, 70)])
        t2 = IFBTree([(3, 30), (5, 50), (7, 7), (9, 90)])

src/b/t/BTrees-4.0.8/BTrees/tests/test_IFBTree.py   BTrees(Download)
    def _getTargetClass(self):
        from BTrees.IFBTree import IFBTree
        return IFBTree
 
 
    def _makeOne(self):
        from BTrees.IFBTree import IFBTree
        return IFBTree()
 
 
        def _makeOne(self):
            from BTrees.IFBTree import IFBTree
            return IFBTree()
 
        def getTwoValues(self):

src/c/o/collective.btrees-1.1/collective/btrees/tests/test_functional.py   collective.btrees(Download)
    def testIFBTree(self):
        try:
            from BTrees.IFBTree import IFBTree
            IFBTree  # pyflakes
        except ImportError: