[Python-ideas] Importing public symbols and simultainiously privatizing them, is too noisy

Rick Johnson rantingrickjohnson at gmail.com
Wed Mar 16 21:58:55 EDT 2016



On Wednesday, March 16, 2016 at 8:54:06 PM UTC-5, Chris Angelico wrote:

> ... and then you decide, hey, let's just define __all__ and not worry 
> about adorning all those names with underscores, because the 
> definition of public vs private can be independent of the symbols 
> themselves. 
>

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. 
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160316/bf018288/attachment.html>


More information about the Python-ideas mailing list