[issue36665] Dropping __main__ from sys.modules clears the REPL namespace
Nick Coghlan
report at bugs.python.org
Thu Apr 18 21:14:27 EDT 2019
Nick Coghlan <ncoghlan at gmail.com> added the comment:
The ``sys`` import gets cleared as well (accidentally omitted from the previous comment):
```
>>> sys
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'sys' is not defined
```
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36665>
_______________________________________
More information about the Python-bugs-list
mailing list