Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ pipe_reader
Method
pipe_reader
Lib/test/test_io/test_general.py:169–172 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
167
# support these operations.
168
169
def
pipe_reader():
170
[r, w] = os.pipe()
171
os.close(w)
# So that read() is harmless
172
return
self.FileIO(r,
"r"
)
173
174
def
pipe_writer():
175
[r, w] = os.pipe()
Callers
nothing calls this directly
Calls
2
pipe
Method · 0.45
close
Method · 0.45
Tested by
no test coverage detected