[Python-ideas] Importing public symbols and simultainiously privatizing them, is too noisy
Rick Johnson
rantingrickjohnson at gmail.com
Wed Mar 16 21:13:09 EDT 2016
On Wednesday, March 16, 2016 at 6:39:01 PM UTC-5, Ben Finney wrote:
> Agreed. What is wrong with:
>
> import lorem as _lorem
> do_something_with(_lorem.Foo)
Yes, in the case when multiple symbols are
imported+privatized, that's an improvement, and hiding
multiple symbols behind a single symbol *CAN* help to avoid
name clashes as well (less names, less chances of clashing)
but, in essence, all you've done is to move "syntactic
noise" from a single location, to a minimum of one other
location, and, potentially, many diverse locations. So yes,
useful technique, but not one that fulfills my current
"selfish desires" -- I need something sweet baby! O:-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160316/c673935d/attachment-0001.html>
More information about the Python-ideas
mailing list