[Python-Dev] Imports with underscores
Guido van Rossum
guido at python.org
Mon Jan 9 11:48:03 EST 2017
I would focus on changing habits to discourage "import *" rather than
uglifying all new code with this "os as _os" pattern. Very occasionally one
designs a module to explicitly support "import *", and that usually entails
using __all__ (like it or not), making the problem go away without
uglifying the code.
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170109/6be55041/attachment.html>
More information about the Python-Dev
mailing list