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

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

src/p/e/PEATDB-2.3/PEATDB/Record.py   PEATDB(Download)
    def __setitem__(self, key, data):       
        if key == 'display':
            OOBTree.__setitem__(self, key, data)
        else:    
            text = self.setDisplayAttribute(key, data)            
            item = Item(data)  
            OOBTree.__setitem__(self, key, item)
            return
        self._p_changed = 1
        return self.__setitem__(key, data)
 
    def __repr__(self):

src/d/o/dolmen.relations-0.5/src/dolmen/relations/container.py   dolmen.relations(Download)
        value.__name__ = key
        alsoProvides(value, IContained)
        OOBTree.__setitem__(self, key, value)
        notify(events.RelationAddedEvent(value))
 

src/p/e/PEATDB-2.3/PEATDB/zodbtest.py   PEATDB(Download)
    def __setitem__(self, key, data):        
        item = Item(data)
        OOBTree.__setitem__(self, key, item)       
        return