chen-y0y0 <cyy144...@icloud.com> added the comment:
--REOPEN-- >>> # I try: >>> import xxx >>> del sys.modules['xxx'] >>> # But: Traceback (most recent call last): File "<stdin>", line 1, in <module> del sys.modules['xxx'] NameError: name 'sys' is not found >>> # I try to import sys. >>> import sys >>> del sys.modules['xxx'] >>> import xxx >>> xxx.b Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'xxx' has no attribute 'b' ---------- resolution: not a bug -> status: closed -> open _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41770> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com