[issue36762] Teach "import *" to warn when overwriting globals or builtins

Serhiy Storchaka report at bugs.python.org
Wed May 1 15:23:42 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

What if existing globals are overwritten intentionally? For example, the stat module defines some constant and then use the star import from _stat. Other example is the datetime module.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list