MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / getvalue

Method getvalue

tools/python-3.11.9-amd64/Lib/_pyio.py:922–927  ·  view source on GitHub ↗

Return the bytes value (contents) of the buffer

(self)

Source from the content-addressed store, hash-verified

920 return self.__dict__.copy()
921
922 def getvalue(self):
923 """Return the bytes value (contents) of the buffer
924 """
925 if self.closed:
926 raise ValueError("getvalue on closed file")
927 return bytes(self._buffer)
928
929 def getbuffer(self):
930 """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 1

test_unencodable_diffMethod · 0.76