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

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

src/i/n/indico-HEAD/indico/MaKaC/review.py   indico(Download)
from persistent import Persistent
from persistent.list import PersistentList
from BTrees.OOBTree import OOBTree, intersection, union
from BTrees.IOBTree import IOBTree
import BTrees.OIBTree as OIBTree
    def getTrackAcceptanceList( self ):
        res = []
        for trackId in intersection( self._tracks, self.getTrackAcceptances() ):
            res.append( self.getTrackAcceptances()[ trackId ] )
        return res
 
    def getNumProposedToAccept( self ):
        return len( intersection( self._tracks, self.getTrackAcceptances() ) )
    def getNumProposedToReject( self ):
        return len( intersection( self._tracks, self.getTrackRejections() ) )
 
    def getTrackReallocations( self ):
        try:
    def getNumProposedToReallocate( self ):
        return len( intersection( self._tracks, self.getTrackReallocations() ) )
 
 
    def getNumJudgements( self ):

src/a/n/anthill.querytool-0.2/anthill/querytool/SearchOperators.py   anthill.querytool(Download)
from BTrees.OOBTree import OOBTree, OOTreeSet 
from BTrees.OOBTree import intersection as OOBTreeIntersection
 
from BTrees.IIBTree import IITreeSet, intersection
 

src/e/x/experimental.catalogqueryplan-3.2.8/experimental/catalogqueryplan/tests/test_plan.py   experimental.catalogqueryplan(Download)
from BTrees.OIBTree import OISet, OITreeSet, OIBTree, OIBucket
 
from BTrees.OOBTree import intersection as oointersection
from BTrees.OOBTree import difference as oodifference
from BTrees.OOBTree import OOSet, OOTreeSet, OOBTree, OOBucket
    def intersection(self, o1, o2):
        return oointersection(o1, o2)
    def difference(self, o1, o2):
        return oodifference(o1, o2)
    builders = OOSet, OOTreeSet, testSetOps.makeBuilder(OOBTree), testSetOps.makeBuilder(OOBucket)

src/e/x/experimental.btree-1.1/experimental/btree/tests/test_sets.py   experimental.btree(Download)
from BTrees.OIBTree import OISet, OITreeSet, OIBTree, OIBucket
 
from BTrees.OOBTree import intersection as oointersection
from BTrees.OOBTree import difference as oodifference
from BTrees.OOBTree import OOSet, OOTreeSet, OOBTree, OOBucket
    def intersection(self, o1, o2):
        return oointersection(o1, o2)
    def difference(self, o1, o2):
        return oodifference(o1, o2)
    builders = OOSet, OOTreeSet, testSetOps.makeBuilder(OOBTree), testSetOps.makeBuilder(OOBucket)

src/b/t/BTrees-4.0.8/BTrees/tests/test_OOBTree.py   BTrees(Download)
    def intersection(self, *args):
        from BTrees.OOBTree import intersection
        return intersection(*args)
 
    def difference(self, *args):