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

Method reset

Lib/test/test_io/test_textio.py:69–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 return '<SID %x>' % id(self)
68
69 def reset(self):
70 self.i = 1
71 self.o = 1
72 self.buffer = bytearray()
73
74 def getstate(self):
75 i, o = self.i ^ 1, self.o ^ 1 # so that flags = 0 after reset()

Callers 8

__init__Method · 0.95
coro_resetMethod · 0.45
coroMethod · 0.45
workerMethod · 0.45
reset_workerMethod · 0.45
test_check_warningsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected