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

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
insert(id) -- Add a key to the set

src/h/y/hypatia-HEAD/hypatia/field/tests.py   hypatia(Download)
        for i in range(100, 10000):
            index.index_doc(i, i)
            c1.insert(i)
        result = index.sort(c1, reverse=True, limit=301) # waaa
        self.assertEqual(list(result), list(range(9999, 9698, -1)))

src/r/e/repoze.catalog-0.8.2/repoze/catalog/indexes/tests/test_field.py   repoze.catalog(Download)
        for i in range(100, 10000):
            index.index_doc(i, i)
            c1.insert(i)
        result = index.sort(c1, reverse=True, limit=301) # waaa
        self.assertEqual(list(result), range(9999, 9698, -1))

src/h/y/hypatia-0.1/hypatia/field/tests.py   hypatia(Download)
        for i in range(100, 10000):
            index.index_doc(i, i)
            c1.insert(i)
        result = index.sort(c1, reverse=True, limit=301) # waaa
        self.assertEqual(list(result), list(range(9999, 9698, -1)))