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

Method closed

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

Source from the content-addressed store, hash-verified

1550 class ReentrantRawIO(self.RawIOBase):
1551 @property
1552 def closed(self):
1553 nonlocal detached
1554 if wrapper is not None and not detached:
1555 detached = True
1556 wrapper.detach()
1557 return False
1558
1559 raw = ReentrantRawIO()
1560 wrapper = self.TextIOWrapper(raw)

Callers

nothing calls this directly

Calls 1

detachMethod · 0.45

Tested by

no test coverage detected