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

Method getstate

Lib/test/test_io.py:2734–2736  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2732 self.buffer = bytearray()
2733
2734 def getstate(self):
2735 i, o = self.i ^ 1, self.o ^ 1 # so that flags = 0 after reset()
2736 return bytes(self.buffer), i*100 + o
2737
2738 def setstate(self, state):
2739 buffer, io = state

Callers 6

_check_decodeMethod · 0.45
test_autoseedMethod · 0.45
test_saverestoreMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected