chen-y0y0 <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue41770>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com