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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
keys([min, max]) -> list of keys

Returns the keys of the BTree.  If min and max are supplied, only
keys greater than min and less than max are returned.

src/z/o/zope.index-4.0.1/src/zope/index/text/tests/test_setops.py   zope.index(Download)
    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:
            result = self._callFUT([(x, factor)])
            self.assertEqual(allkeys, list(result.keys()))
            for key in x.keys():
    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:
            result = self._callFUT([(x, factor)])
            self.assertEqual(allkeys, list(result.keys()))
            for key in x.keys():