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

Method setstate

Lib/_pyio.py:2018–2022  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

2016 return buf, flag
2017
2018 def setstate(self, state):
2019 buf, flag = state
2020 self.pendingcr = bool(flag & 1)
2021 if self.decoder is not None:
2022 self.decoder.setstate((buf, flag >> 1))
2023
2024 def reset(self):
2025 self.seennl = 0

Callers 5

_configureMethod · 0.45
tellMethod · 0.45
_reset_encoderMethod · 0.45
seekMethod · 0.45
getvalueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected