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

Method getvalue

tools/python-3.11.9-amd64/Lib/_pyio.py:2687–2695  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2685 self.seek(0)
2686
2687 def getvalue(self):
2688 self.flush()
2689 decoder = self._decoder or self._get_decoder()
2690 old_state = decoder.getstate()
2691 decoder.reset()
2692 try:
2693 return decoder.decode(self.buffer.getvalue(), final=True)
2694 finally:
2695 decoder.setstate(old_state)
2696
2697 def __repr__(self):
2698 # TextIOWrapper tells the encoding in its repr. In StringIO,

Callers 8

_exception_tracebackFunction · 0.95
runTestMethod · 0.95
complete_stringFunction · 0.95
delete_stringFunction · 0.95
reformat_stringFunction · 0.95
generate_or_checkFunction · 0.95
open_for_changesFunction · 0.95
executeFunction · 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 2

_exception_tracebackFunction · 0.76
runTestMethod · 0.76