MCPcopy
hub / github.com/psycopg/psycopg / fileno

Method fileno

psycopg/psycopg/_connection_base.py:287–294  ·  view source on GitHub ↗

Return the file descriptor of the connection. This function allows to use the connection as file-like object in functions waiting for readiness, such as the ones defined in the `selectors` module.

(self)

Source from the content-addressed store, hash-verified

285 return self
286
287 def fileno(self) -> int:
288 """Return the file descriptor of the connection.
289
290 This function allows to use the connection as file-like object in
291 functions waiting for readiness, such as the ones defined in the
292 `selectors` module.
293 """
294 return self.pgconn.socket
295
296 def cancel(self) -> None:
297 """Cancel the current operation on the connection."""

Callers 15

test_filenoFunction · 0.80
__init__Method · 0.80
tracefileFunction · 0.80
maybe_traceFunction · 0.80
test_filenoFunction · 0.80
test_wait_rFunction · 0.80
test_wait_r_no_linuxFunction · 0.80
test_wait_r_nowaitFunction · 0.80
test_wait_wFunction · 0.80
test_wait_rFunction · 0.80
test_wait_r_no_linuxFunction · 0.80
test_wait_r_nowaitFunction · 0.80

Calls

no outgoing calls

Tested by 12

test_filenoFunction · 0.64
test_filenoFunction · 0.64
test_wait_rFunction · 0.64
test_wait_r_no_linuxFunction · 0.64
test_wait_r_nowaitFunction · 0.64
test_wait_wFunction · 0.64
test_wait_rFunction · 0.64
test_wait_r_no_linuxFunction · 0.64
test_wait_r_nowaitFunction · 0.64
test_wait_wFunction · 0.64
test_trace_pre14Function · 0.64
test_traceFunction · 0.64