[Python-Dev] Imports with underscores
Guido van Rossum
guido at python.org
Mon Jan 9 11:48:03 EST 2017
More information about the Python-Dev mailing list
Mon Jan 9 11:48:03 EST 2017
- Previous message (by thread): [Python-Dev] Imports with underscores
- Next message (by thread): [Python-Dev] Imports with underscores
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Previous message (by thread): [Python-Dev] Imports with underscores
- Next message (by thread): [Python-Dev] Imports with underscores
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list