[issue41770] Import module doesn't updated

chen-y0y0 report at bugs.python.org
Sat Sep 12 22:39:57 EDT 2020


chen-y0y0 <cyy144881 at 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 <report at bugs.python.org>
<https://bugs.python.org/issue41770>
_______________________________________


More information about the Python-bugs-list mailing list