[issue41770] Import module doesn't updated

chen-y0y0 report at bugs.python.org
Fri Sep 11 23:00:15 EDT 2020


New submission from chen-y0y0 <cyy144881 at icloud.com>:

# I create a module:
# \sys.path\xxx.py
a = 9
# And:
>>> import xxx
>>> xxx.a
9
# I delete this imported module and modified this module:
del xxx
# \sys.path\xxx.py
a = 9
b = 8
# And re-import:
>>> import xxx
>>> xxx.b
# But:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: type object 'xxx' has no attribute 'b'

----------
components: Windows
messages: 376766
nosy: paul.moore, prasechen, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Import  module doesn't updated
type: resource usage
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41770>
_______________________________________


More information about the Python-bugs-list mailing list