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

Method getvalue

Lib/_pyio.py:2753–2761  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2751 self.seek(0)
2752
2753 def getvalue(self):
2754 self.flush()
2755 decoder = self._decoder or self._get_decoder()
2756 old_state = decoder.getstate()
2757 decoder.reset()
2758 try:
2759 return decoder.decode(self.buffer.getvalue(), final=True)
2760 finally:
2761 decoder.setstate(old_state)
2762
2763 def __repr__(self):
2764 # TextIOWrapper tells the encoding in its repr. In StringIO,

Callers 15

_exception_tracebackFunction · 0.95
__str__Method · 0.95
as_stringMethod · 0.95
demo_appFunction · 0.95
formatExceptionMethod · 0.95
test_print_excMethod · 0.95
test_stream_bomMethod · 0.95
test_stream_bareMethod · 0.95
invoke_pickleMethod · 0.95

Calls 7

_get_decoderMethod · 0.80
flushMethod · 0.45
getstateMethod · 0.45
resetMethod · 0.45
decodeMethod · 0.45
getvalueMethod · 0.45
setstateMethod · 0.45