MCPcopy Create free account
hub / github.com/ActiveState/code / __setitem__

Method __setitem__

recipes/Python/475113_HTML_Help/recipe-475113.py:202–204  ·  view source on GitHub ↗

x.__setitem__(i, y) <==> x[i]=y

(self, key, value)

Source from the content-addressed store, hash-verified

200 return self.__data[key]
201
202 def __setitem__(self, key, value):
203 '''x.__setitem__(i, y) <==> x[i]=y'''
204 self.__data[key] = array(len(self.__data[key]), value)
205
206 def __delitem__(self, key):
207 '''x.__delitem__(y) <==> del x[y]'''

Callers

nothing calls this directly

Calls 1

arrayClass · 0.70

Tested by

no test coverage detected