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

Method getvalue

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

Source from the content-addressed store, hash-verified

2727 self.seek(0)
2728
2729 def getvalue(self):
2730 self.flush()
2731 decoder = self._decoder or self._get_decoder()
2732 old_state = decoder.getstate()
2733 decoder.reset()
2734 try:
2735 return decoder.decode(self.buffer.getvalue(), final=True)
2736 finally:
2737 decoder.setstate(old_state)
2738
2739 def __repr__(self):
2740 # TextIOWrapper tells the encoding in its repr. In StringIO,

Callers 15

_exception_tracebackFunction · 0.95
runTestMethod · 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
test_unknown_flagMethod · 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

Tested by 15

_exception_tracebackFunction · 0.76
runTestMethod · 0.76
test_print_excMethod · 0.76
test_stream_bomMethod · 0.76
test_stream_bareMethod · 0.76
invoke_pickleMethod · 0.76
test_unknown_flagMethod · 0.76
check_parseMethod · 0.76
check_parseStringMethod · 0.76
test_exception_tableMethod · 0.76