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

All Samples(18)  |  Call(5)  |  Derive(0)  |  Import(13)
union(o1, o2) -- compute the union of o1 and o2

src/i/n/indico-HEAD/indico/MaKaC/conference.py   indico(Download)
from persistent import Persistent
from BTrees.OOBTree import OOBTree, OOTreeSet, OOSet
from BTrees.OIBTree import OIBTree,OISet,union
import MaKaC
import MaKaC.common.indexes as indexes
        for k in self._idx.keys():
            if k.find(query)!=-1:
                res=union(res,self._idx[k])
        return res
 

src/i/n/indico-HEAD/indico/MaKaC/review.py   indico(Download)
        for k in self._idx.keys():
            if k.find(query) != -1:
                res = OIBTree.union(res, self._idx[k])
        return res
 

src/p/r/Products.BTreeFolder2-2.13.4/src/Products/BTreeFolder2/BTreeFolder2.py   Products.BTreeFolder2(Download)
from BTrees.Length import Length
from BTrees.OIBTree import OIBTree
from BTrees.OIBTree import union
from BTrees.OOBTree import OOBTree
from OFS.event import ObjectWillBeAddedEvent
            ids = mti.get(meta_type, None)
            if ids is not None:
                set = union(set, ids)
        if set is None:
            return ()

src/p/r/Products.orderedbtreefolder-1.3.0/Products/orderedbtreefolder/orderedbtreefolder.py   Products.orderedbtreefolder(Download)
                          ClassSecurityInfo, \
                          Unauthorized
from BTrees.OIBTree import union
from Globals import DTMLFile, InitializeClass
 
                ids = mti.get(meta_type, None)
                if ids is not None:
                    set = union(set, ids)
            if set is None:
                return ()

src/e/r/erp5-HEAD/product/ERP5Type/patches/BTreeFolder2.py   erp5(Download)
from Acquisition import aq_base
from BTrees.OOBTree import OOBTree
from BTrees.OIBTree import OIBTree, union
from BTrees.Length import Length
from OFS.ObjectManager import BadRequestException, BeforeDeleteException

src/e/r/erp5-HEAD/product/HBTreeFolder2/HBTreeFolder2.py   erp5(Download)
from Acquisition import aq_base
from BTrees.OOBTree import OOBTree
from BTrees.OIBTree import OIBTree, union
from BTrees.Length import Length
from ZODB.POSException import ConflictError

src/b/t/BTrees-4.0.8/BTrees/tests/test_OIBTree.py   BTrees(Download)
    def union(self, *args):
        from BTrees.OIBTree import union
        return union(*args)
 
    def intersection(self, *args):
    def union(self):
        from BTrees.OIBTree import union
        return union
 
    def intersection(self):

src/e/x/experimental.catalogqueryplan-3.2.8/experimental/catalogqueryplan/tests/test_plan.py   experimental.catalogqueryplan(Download)
class TestPureOI(SetResult):
    from BTrees.OIBTree import union
    def intersection(self, o1, o2):
        return oiintersection(o1, o2)
    def difference(self, o1, o2):
    def weightedIntersection(self, o1, o2, w1=1, w2=1):
        return oiweightedIntersection(o1, o2, w1, w2)
    from BTrees.OIBTree import weightedUnion, union
    from BTrees.OIBTree import union
    from BTrees.OIBTree import OIBucket as mkbucket

src/e/x/experimental.btree-1.1/experimental/btree/tests/test_sets.py   experimental.btree(Download)
class TestPureOI(SetResult):
    from BTrees.OIBTree import union
    def intersection(self, o1, o2):
        return oiintersection(o1, o2)
    def difference(self, o1, o2):
    def weightedIntersection(self, o1, o2, w1=1, w2=1):
        return oiweightedIntersection(o1, o2, w1, w2)
    from BTrees.OIBTree import weightedUnion, union
    from BTrees.OIBTree import union
    from BTrees.OIBTree import OIBucket as mkbucket