Return the name of the file currently being read. Before the first line has been read, returns None.
()
| 113 | return _state.nextfile() |
| 114 | |
| 115 | def filename(): |
| 116 | """ |
| 117 | Return the name of the file currently being read. |
| 118 | Before the first line has been read, returns None. |
| 119 | """ |
| 120 | if not _state: |
| 121 | raise RuntimeError("no active input()") |
| 122 | return _state.filename() |
| 123 | |
| 124 | def lineno(): |
| 125 | """ |