Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ fileno
Method
fileno
Lib/test/test_fcntl.py:25–26 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
23
def
__init__(self, fn):
24
self.fn = fn
25
def
fileno(self):
26
return
self.fn
27
28
def
try_lockf_on_other_process_fail(fname, cmd):
29
f = open(fname,
'wb+'
)
Callers
15
copyfileobj
Function · 0.45
serve_until_stopped
Method · 0.45
_statstream
Method · 0.45
setUp
Method · 0.45
test_create
Method · 0.45
test_context_manager
Method · 0.45
test_add
Method · 0.45
test_fromfd
Method · 0.45
test_control_and_wait
Method · 0.45
test_unregister_closed
Method · 0.45
test_close
Method · 0.45
test_close_error
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected