Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ fileno
Method
fileno
Lib/test/test_socket.py:2049–2050 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2047
self.fd = fd
2048
2049
def
fileno(self):
2050
return
self.fd
2051
with
socket.socket()
as
sock:
2052
fd = os.open(os.curdir, os.O_RDONLY)
2053
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