Return the file number of the current file. When no file is currently opened, returns -1.
()
| 142 | return _state.filelineno() |
| 143 | |
| 144 | def fileno(): |
| 145 | """ |
| 146 | Return the file number of the current file. When no file is currently |
| 147 | opened, returns -1. |
| 148 | """ |
| 149 | if not _state: |
| 150 | raise RuntimeError("no active input()") |
| 151 | return _state.fileno() |
| 152 | |
| 153 | def isfirstline(): |
| 154 | """ |