mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
gh-120678: pyrepl: Include globals from modules passed with -i
(GH-120904)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
58753f33e4
commit
ac07451116
6 changed files with 178 additions and 11 deletions
|
@ -1,3 +1,6 @@
|
|||
# Important: don't add things to this module, as they will end up in the REPL's
|
||||
# default globals. Use _pyrepl.main instead.
|
||||
|
||||
if __name__ == "__main__":
|
||||
from .main import interactive_console as __pyrepl_interactive_console
|
||||
__pyrepl_interactive_console()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue