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

All Samples(79)  |  Call(79)  |  Derive(0)  |  Import(0)
x.__contains__(y) <==> y in x

src/u/n/unknown-horizons-HEAD/horizons/util/python/weaklist.py   unknown-horizons(Download)
	def __contains__(self, item):
		return list.__contains__(self, weakref.ref(item))
 
	def __getslice__(self, i, j):
		return WeakList(list(self)[i:j])

src/w/e/weakreflist-0.2/weakreflist/weakreflist.py   weakreflist(Download)
    def _getRef(self, value):
        value = self._makeRef(value)
        if list.__contains__(self, value):
            value = list.__getitem__(self, list.index(self, value))
        return value
    def __contains__(self, item):
        return list.__contains__(self, self._makeRef(item))
 
    def __getitem__(self, key):
        return self._getValue(list.__getitem__(self, key))
    def remove(self, value):
        value = self._makeRef(value)
        while list.__contains__(self, value):
            list.remove(self, value)
 

src/e/v/everest-1.0b2dev/everest/utils.py   everest(Download)
    def __contains__(self, value):
        return list.__contains__(self, self.__get_weakref(value))
 
    def __add__(self, sequence):
        new_weak_list = WeakList(sequence)

src/p/y/pycollada-0.4/collada/util.py   pycollada(Download)
    def __contains__(self, item):
        if item in self._index:
            return True
        return list.__contains__(self, item)
 

src/p/y/pycollada-HEAD/collada/util.py   pycollada(Download)
    def __contains__(self, item):
        if item in self._index:
            return True
        return list.__contains__(self, item)
 

src/p/l/plumbum-1.4.1/plumbum/machines/env.py   plumbum(Download)
    def __contains__(self, path):
        return list.__contains__(self, self._path_factory(path))
    def remove(self, path):
        list.remove(self, self._path_factory(path))
    def update(self, text):

src/p/l/plumbum-HEAD/plumbum/machines/env.py   plumbum(Download)
    def __contains__(self, path):
        return list.__contains__(self, self._path_factory(path))
    def remove(self, path):
        list.remove(self, self._path_factory(path))
    def update(self, text):

src/p/2/p2psip-2.2.8/p2psip/external/simplexml.py   p2psip(Download)
    def __contains__(self, item): # item is either XML, or tag name, or lambda function to test
        if isinstance(item, XML): return list.__contains__(self, item)
        elif isinstance(item, (str, unicode)): return self._filter(lambda x: x.tag == item)
        elif callable(item): return self._filter(item)
        else: return False

src/e/v/everest-HEAD/everest/utils.py   everest(Download)
    def __contains__(self, value):
        return list.__contains__(self, self.__get_weakref(value))
 
    def __add__(self, sequence):
        new_weak_list = WeakList(sequence)

src/n/e/netius-1.0.12/src/netius/common/mime.py   netius(Download)
    def __contains__(self, item):
        is_string = type(item) in netius.STRINGS
        if not is_string: return list.__contains__(self, item)
        for key, _value in self:
            if not key == item: continue

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next