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

All Samples(217)  |  Call(217)  |  Derive(0)  |  Import(0)
x.__setitem__(i, y) <==> x[i]=y

src/s/n/SNAKES-0.9.17/snakes/hashables.py   SNAKES(Download)
    def __setitem__ (self, index, item) :
        self.__mutable__()
        list.__setitem__(self, index, item)
    def __setslice__ (self, first, last, item) :
        self.__mutable__()

src/u/n/unknown-horizons-HEAD/horizons/util/python/weaklist.py   unknown-horizons(Download)
	def __setitem__(self, index, value):
		if isinstance(index, slice):
			list.__setitem__(self, index, self.__iter_over_weakref(value))
		else:
			list.__setitem__(self, index, self.__new_weakref(value))

src/n/o/nodebox-opengl-1.6.1/nodebox/graphics/context.py   nodebox-opengl(Download)
    def __setitem__(self, i, v):
        list.__setitem__(self, i, v)
        self._dirty = True
 
    def _get_r(self): return self[0]
    def __setitem__(self, i, pt):
        self._dirty = True; self._index={}; list.__setitem__(self, i, pt)
    def __delitem__(self, i):
        self._dirty = True; self._index={}; list.__delitem__(self, i)
    def sort(self):
    def __setitem__(self, i, v):
        list.__setitem__(self, i, v)
        self._dirty = True
 
    def _get_dx1(self): return self[0]

src/d/i/digsby-HEAD/digsby/src/util/observe/observablelist.py   digsby(Download)
    def __setitem__(self, i, v): return list.__setitem__(self, i, v)
    @notify_wrap
    def __delitem__ (self,key): return list.__delitem__(self, key)
    @notify_wrap
    def __setslice__ (self, i, j, seq): return list.__setslice__(self, i, j, seq)

src/o/r/Orange-2.7.2/Orange/OrangeWidgets/OWGUI.py   Orange(Download)
    def __setitem__(self, index, item):
        self.listBox.item(list.__getitem__(self, index)).setSelected(0)
        item.setSelected(1)
        list.__setitem__(self, index, item)
 

src/f/l/flatland-fork-0.1.post2.dev128296736/flatland/schema/containers.py   flatland-fork(Download)
                value = self.member_schema(value=value)
                value.parent = self
        list.__setitem__(self, index, value)
 
    def __setslice__(self, i, j, value):
    def __setitem__(self, index, value):
        if isinstance(index, slice):
            value = [self._new_slot(item) for item in value]
            list.__setitem__(self, index, value)
            self._renumber()

src/m/o/mozilla-ignite-learning-lab-demos-HEAD/lab-6-7-openflow/controller/pox/lib/util.py   mozilla-ignite-learning-lab-demos(Download)
    elif self[k] != v:
      self._smudge('__setitem__',k,v)
    list.__setitem__(self, k, v)
    assert good
 

src/f/l/flatland-HEAD/flatland/schema/containers.py   flatland(Download)
                value = self.member_schema(value=value)
                value.parent = self
        list.__setitem__(self, index, value)
 
    def __setslice__(self, i, j, value):
    def __setitem__(self, index, value):
        if isinstance(index, slice):
            value = [self._new_slot(item) for item in value]
            list.__setitem__(self, index, value)
            self._renumber()

src/r/o/RouteFlow-HEAD/pox/pox/lib/util.py   RouteFlow(Download)
    elif self[k] != v:
      self._smudge('__setitem__',k,v)
    list.__setitem__(self, k, v)
    assert good
 

src/a/d/adhocracy-2.4.1/parts/omelette/adhocracy/model/core.py   adhocracy(Download)
            old_value._parents.pop(obj, None)
 
        list.__setitem__(self, key, value)
        for obj, key in self._parents.items():
            value._parents[obj] = key

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