Returns true the line just read is the first line of its file, otherwise returns false.
()
| 151 | return _state.fileno() |
| 152 | |
| 153 | def isfirstline(): |
| 154 | """ |
| 155 | Returns true the line just read is the first line of its file, |
| 156 | otherwise returns false. |
| 157 | """ |
| 158 | if not _state: |
| 159 | raise RuntimeError("no active input()") |
| 160 | return _state.isfirstline() |
| 161 | |
| 162 | def isstdin(): |
| 163 | """ |
no test coverage detected
searching dependent graphs…