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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
insert(key, value) -> 0 or 1

Add an item if the key is not already used. Return 1 if the item was
added, or 0 otherwise.

src/z/3/z3c.indexer-0.6.1/src/z3c/indexer/performance.py   z3c.indexer(Download)
    result = IFBTree()
    for uid in intids:
        result.insert(uid, 0)
    return difference(result, found)
 

src/h/u/hurry.query-1.1.1/src/hurry/query/query.py   hurry.query(Download)
        result = IFBTree()
        for uid in intids:
            result.insert(uid, 0)
        return result