Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _get_devnull
Method
_get_devnull
Lib/subprocess.py:1200–1203 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1198
_active.append(self)
1199
1200
def
_get_devnull(self):
1201
if
not hasattr(self,
'_devnull'
):
1202
self._devnull = os.open(os.devnull, os.O_RDWR)
1203
return
self._devnull
1204
1205
def
_stdin_write(self, input):
1206
if
input:
Callers
1
_get_handles
Method · 0.95
Calls
1
open
Method · 0.45
Tested by
no test coverage detected