Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ fileno
Method
fileno
Lib/test/test_socket.py:2100–2101 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2098
self.fd = fd
2099
2100
def
fileno(self):
2101
return
self.fd
2102
with
socket.socket()
as
sock:
2103
fd = os.open(os.curdir, os.O_RDONLY)
2104
os.close(fd)
Callers
14
test_repr
Method · 0.45
test_csocket_repr
Method · 0.45
test_weakref
Method · 0.45
testCloseException
Method · 0.45
test_socket_close
Method · 0.45
_test_socket_fileno
Method · 0.45
test_socket_fileno_requires_socket_fd
Method · 0.45
testFromFd
Method · 0.45
testDetach
Method · 0.45
testAttributes
Method · 0.45
_testAttributes
Method · 0.45
test_setblocking_invalidfd
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected