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

Method read

recipes/Python/492209_dal1py/recipe-492209.py:173–176  ·  view source on GitHub ↗
(self, index, size)

Source from the content-addressed store, hash-verified

171
172 # Read Some Data
173 def read(self, index, size):
174 assert type(index) is int and 0 <= index < len(self)
175 assert type(size) is int and index < index + size <= len(self)
176 return self.__string[index:index+size]
177
178 # Write Some Data
179 def write(self, index, data):

Callers 1

testFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected