Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ fileno
Method
fileno
Lib/test/test_capi/test_file.py:152–153 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
150
def
__init__(self, fd):
151
self.fd = fd
152
def
fileno(self):
153
return
self.fd
154
155
# file descriptor must be positive
156
with
self.assertRaises(ValueError):
Callers
5
pyobject_dump
Method · 0.45
test_pyfile_fromfd
Method · 0.45
test_pyobject_asfiledescriptor
Method · 0.45
test_pyfile_newstdprinter
Method · 0.45
test_pyfile_newstdprinter_write
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected