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

Method __init__

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

x.__init__(...) initializes x

(self, rows, columns, value=None)

Source from the content-addressed store, hash-verified

182 matrix(rows, columns, value) -> initialized from value'''
183
184 def __init__(self, rows, columns, value=None):
185 '''x.__init__(...) initializes x'''
186 self.__data = array(rows)
187 for index in range(rows):
188 self.__data[index] = array(columns, value)
189
190 def __repr__(self):
191 '''x.__repr__() <==> repr(x)'''

Callers

nothing calls this directly

Calls 2

rangeFunction · 0.85
arrayClass · 0.70

Tested by

no test coverage detected