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

All Samples(32)  |  Call(11)  |  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/n/g/ng.index.topology-0.0.3/src/ng/index/topology/topologyindex.py   ng.index.topology(Download)
from zope.app.zapi import getUtility
from zope.app.intid.interfaces import IIntIds
from BTrees.IFBTree import IFBucket
 
class TopologyIndexBase(TopologyBase,TopologyContainer) :
    def apply(self,query) :
        return IFBucket(list(self._apply(query)))
 
    def _apply(self,query) :
        nlayer = self.layer

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(OIBucket()) : (0, 0, OBJECT,),
  type(IIBucket()) : (0, 0, INT,),
  type(IFBucket()) : (0, 0, INT,),
  type(LOBucket()) : (0, 0, LONG,),
  type(OLBucket()) : (0, 0, OBJECT,),

src/z/o/zope.index-4.0.1/src/zope/index/text/tests/test_setops.py   zope.index(Download)
    def test_empty_list_no_family(self):
        from BTrees.IFBTree import IFBucket
        t = self._callFUT([])
        self.assertEqual(len(t), 0)
        self.assertEqual(t.__class__, IFBucket)
 
    def test_empty_list_family32(self):
        import BTrees
        from BTrees.IFBTree import IFBucket
    def test_identity_bucket(self):
        from BTrees.IFBTree import IFBucket
        x = IFBucket([(1, 2)])
        result = self._callFUT([(x, 1)])
        self.assertEqual(len(result), 1)
    def test_scalar_multiply_bucket(self):
        from BTrees.IFBTree import IFBucket
        x = IFBucket([(1, 2), (2, 3), (3, 4)])
        allkeys = list(x.keys())
        for factor in 0, 1, 5, 10:

src/b/t/BTrees-4.0.8/BTrees/tests/test_IFBTree.py   BTrees(Download)
    def _getTargetClass(self):
        from BTrees.IFBTree import IFBucket
        return IFBucket
 
 
    def mkbucket(self, *args):
        from BTrees.IFBTree import IFBucket as mkbucket
        return mkbucket(*args)
 
    def mkbtree(self, *args):
    def builders(self):
        from BTrees.IFBTree import IFBTree
        from BTrees.IFBTree import IFBucket
        from BTrees.IFBTree import IFTreeSet
        from BTrees.IFBTree import IFSet
    def _getTargetClass(self):
        from BTrees.IFBTree import IFBucket
        return IFBucket
 
 

src/h/y/hypatia-HEAD/hypatia/text/tests/test_setops.py   hypatia(Download)
    def test_empty_list_family32(self):
        import BTrees
        from BTrees.IFBTree import IFBucket
        t = self._callFUT([], BTrees.family32)
        self.assertEqual(len(t), 0)
    def test_empty_list_family32(self):
        import BTrees
        from BTrees.IFBTree import IFBucket
        t = self._callFUT([], BTrees.family32)
        self.assertEqual(len(t), 0)

src/h/y/hypatia-0.1/hypatia/text/tests/test_setops.py   hypatia(Download)
    def test_empty_list_family32(self):
        import BTrees
        from BTrees.IFBTree import IFBucket
        t = self._callFUT([], BTrees.family32)
        self.assertEqual(len(t), 0)
    def test_empty_list_family32(self):
        import BTrees
        from BTrees.IFBTree import IFBucket
        t = self._callFUT([], BTrees.family32)
        self.assertEqual(len(t), 0)