MCPcopy Index your code
hub / github.com/python/cpython / isstdin

Function isstdin

Lib/fileinput.py:162–169  ·  view source on GitHub ↗

Returns true if the last line was read from sys.stdin, otherwise returns false.

()

Source from the content-addressed store, hash-verified

160 return _state.isfirstline()
161
162def isstdin():
163 """
164 Returns true if the last line was read from sys.stdin,
165 otherwise returns false.
166 """
167 if not _state:
168 raise RuntimeError("no active input()")
169 return _state.isstdin()
170
171class FileInput:
172 """FileInput([files[, inplace[, backup]]], *, mode=None, openhook=None)

Callers

nothing calls this directly

Calls 1

isstdinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…