MCPcopy 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_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