MCPcopy Index your code
hub / github.com/python/cpython / read

Method read

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

Source from the content-addressed store, hash-verified

68 self._buffer += chars
69
70 def read(self, size=-1):
71 if size<0:
72 s = self._buffer
73 self._buffer = self._buffer[:0] # make empty
74 return s
75 else:
76 s = self._buffer[:size]
77 self._buffer = self._buffer[size:]
78 return s
79
80
81class 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
_check_process_diedFunction · 0.45
_handle_live_runFunction · 0.45
_execute_scriptFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected