[issue27515] Dotted name re-import does not rebind after deletion

Guido van Rossum report at bugs.python.org
Thu Jul 14 16:57:43 EDT 2016


Guido van Rossum added the comment:

I don't think this is a bug. You're paraphrasing step 2 incorrectly. The local name-binding behavior just creates a local named "email" -- it doesn't concern itself with ensuring that the email package has an attribute "charset". That attribute is set as a side effect of *loading* the charset submodule, not as a side effect of every import statement.

----------
nosy: +gvanrossum

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27515>
_______________________________________


More information about the Python-bugs-list mailing list