MCPcopy Index your code
hub / github.com/RustPython/RustPython / read

Method read

Lib/test/test_codecs.py:69–77  ·  view source on GitHub ↗
(self, size=-1)

Source from the content-addressed store, hash-verified

67 self._buffer += chars
68
69 def read(self, size=-1):
70 if size<0:
71 s = self._buffer
72 self._buffer = self._buffer[:0] # make empty
73 return s
74 else:
75 s = self._buffer[:size]
76 self._buffer = self._buffer[size:]
77 return s
78
79
80class MixInCheckStateHandling:

Callers 15

test_basicsMethod · 0.95
rot13Function · 0.45
parseMethod · 0.45
read_bytesMethod · 0.45
read_textMethod · 0.45
read_bytesMethod · 0.45
read_textMethod · 0.45
fileConfigFunction · 0.45
load_teststringFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected