Return the line number in the current file. Before the first line has been read, returns 0. After the last line of the last file has been read, returns the line number of that line within the file.
()
| 132 | return _state.lineno() |
| 133 | |
| 134 | def filelineno(): |
| 135 | """ |
| 136 | Return the line number in the current file. Before the first line |
| 137 | has been read, returns 0. After the last line of the last file has |
| 138 | been read, returns the line number of that line within the file. |
| 139 | """ |
| 140 | if not _state: |
| 141 | raise RuntimeError("no active input()") |
| 142 | return _state.filelineno() |
| 143 | |
| 144 | def fileno(): |
| 145 | """ |
no test coverage detected
searching dependent graphs…