MCPcopy 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_reprMethod · 0.45
test_csocket_reprMethod · 0.45
test_weakrefMethod · 0.45
testCloseExceptionMethod · 0.45
test_socket_closeMethod · 0.45
_test_socket_filenoMethod · 0.45
testFromFdMethod · 0.45
testDetachMethod · 0.45
testAttributesMethod · 0.45
_testAttributesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected