[Python-ideas] Importing public symbols and simultainiously privatizing them, is too noisy
David Wilson
dw+python-ideas at hmmz.org
Wed Mar 16 22:12:38 EDT 2016
On Wed, Mar 16, 2016 at 06:58:55PM -0700, Rick Johnson wrote:
> I avoid __all__ like the plague. Too easy for it to get out of sync with the
> API when i forget to add a new symbol.
In that case why not simply also avoid 'from .. import *' like the
plague? It seems far simpler than renaming every single import, which
places a permanent burden on future maintainers, code completing
editors, grep, etc.
FWIW I'd probably _break _down _and cry _if _faced _with _maintaining
_code _like _that.
David
More information about the Python-ideas
mailing list