Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __exit__
Method
__exit__
Lib/os.py:1079–1080 ·
view source on GitHub ↗
(self, *args)
Source
from the content-addressed store, hash-verified
1077
def
__enter__(self):
1078
return
self
1079
def
__exit__(self, *args):
1080
self.close()
1081
def
__getattr__(self, name):
1082
return
getattr(self._stream, name)
1083
def
__iter__(self):
Callers
nothing calls this directly
Calls
1
close
Method · 0.95
Tested by
no test coverage detected