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

Method getvalue

Lib/_pyio.py:904–909  ·  view source on GitHub ↗

Return the bytes value (contents) of the buffer

(self)

Source from the content-addressed store, hash-verified

902 self._lock = Lock()
903
904 def getvalue(self):
905 """Return the bytes value (contents) of the buffer
906 """
907 if self.closed:
908 raise ValueError("getvalue on closed file")
909 return bytes(self._buffer)
910
911 def getbuffer(self):
912 """Return a readable and writable view of the buffer.

Callers 15

optimizeFunction · 0.95
dumpsFunction · 0.95
encodestringFunction · 0.95
decodestringFunction · 0.95
_dumpsFunction · 0.95
get_messageMethod · 0.95
get_bytesMethod · 0.95
uu_encodeFunction · 0.95
uu_decodeFunction · 0.95
quopri_encodeFunction · 0.95
quopri_decodeFunction · 0.95
as_bytesMethod · 0.95

Calls

no outgoing calls

Tested by 15

test_only_one_bomMethod · 0.76
test_only_one_bomMethod · 0.76
test_basicMethod · 0.76
test_writelinesMethod · 0.76
test_writeMethod · 0.76
dumpsMethod · 0.76
checkMethod · 0.76
test_pickler_superMethod · 0.76