Lib/_pyrepl/__main__.py
raw| 1 | # Important: don't add things to this module, as they will end up in the REPL's |
| 2 | # default globals. Use _pyrepl.main instead. |
| 3 | |
| 4 | # Avoid caching this file by linecache and incorrectly report tracebacks. |
| 5 | # See https://github.com/python/cpython/issues/129098. |
| 6 | __spec__ = __loader__ = None |
| 7 | |
| 8 | if __name__ == "__main__": |
| 9 | from .main import interactive_console as __pyrepl_interactive_console |
| 10 | __pyrepl_interactive_console() |