MCPcopy Create free account
hub / github.com/ipython/ipython / _stdin_ready_posix

Function _stdin_ready_posix

IPython/lib/inputhook.py:49–52  ·  view source on GitHub ↗

Return True if there's something to read on stdin (posix version).

()

Source from the content-addressed store, hash-verified

47#-----------------------------------------------------------------------------
48
49def _stdin_ready_posix():
50 """Return True if there's something to read on stdin (posix version)."""
51 infds, outfds, erfds = select.select([sys.stdin],[],[],0)
52 return bool(infds)
53
54def _stdin_ready_nt():
55 """Return True if there's something to read on stdin (nt version)."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected