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

Method getvalue

Lib/_pyio.py:892–897  ·  view source on GitHub ↗

Return the bytes value (contents) of the buffer

(self)

Source from the content-addressed store, hash-verified

890 return self.__dict__.copy()
891
892 def getvalue(self):
893 """Return the bytes value (contents) of the buffer
894 """
895 if self.closed:
896 raise ValueError("getvalue on closed file")
897 return bytes(self._buffer)
898
899 def getbuffer(self):
900 """Return a readable and writable view of the buffer.

Callers 15

optimizeFunction · 0.95
dumpsFunction · 0.95
encodestringFunction · 0.95
decodestringFunction · 0.95
__setitem__Method · 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

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