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

All Samples(16)  |  Call(9)  |  Derive(0)  |  Import(7)
difference(o1, o2) -- compute the difference between o1 and o2

src/p/r/Products.ZCatalog-3.0.2/src/Products/PluginIndexes/KeywordIndex/KeywordIndex.py   Products.ZCatalog(Download)
from logging import getLogger
 
from BTrees.OOBTree import difference
from BTrees.OOBTree import OOSet
from App.special_dtml import DTMLFile
                oldKeywords = OOSet(oldKeywords)
            newKeywords = OOSet(newKeywords)
            fdiff = difference(oldKeywords, newKeywords)
            rdiff = difference(newKeywords, oldKeywords)
            if fdiff or rdiff:

src/s/p/spambayes-1.1b1/pspam/pspam/folder.py   spambayes(Download)
import ZODB
from Persistence import Persistent
from BTrees.OOBTree import OOBTree, OOSet, difference
 
import email
                new.insert(msg)
 
        removed = difference(self.messages, cur)
        for msgid in removed.keys():
            del self.messages[msgid]

src/p/r/Products.ManagableIndex-2.1.5/Products/ManagableIndex/KeywordIndex.py   Products.ManagableIndex(Download)
from sys import maxint
 
from BTrees.OOBTree import difference, OOSet, union, OOTreeSet
from Products.PluginIndexes.interfaces import IUniqueValueIndex
 
  def _update(self,documentId,val,oldval,threshold):
    add= difference(val,oldval)
    rem= difference(oldval,val)
    if add: self._indexValue(documentId,add,threshold)
    if rem: self._unindexValue(documentId,rem)

src/o/p/opennode-management-HEAD/opennode/oms/model/model/search.py   opennode-management(Download)
from __future__ import absolute_import
 
from BTrees.OOBTree import OOTreeSet, difference
from grokcore.component import context, subscribe, Adapter, baseclass
from twisted.python import log
        self.__parent__ = parent
        self.searcher = searcher
        self.other_tags = difference(other_tags, OOTreeSet([self.__name__]))
        self.tag_path = tag_path + [name]
 

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

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

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