[Python-ideas] Importing public symbols and simultainiously privatizing them, is too noisy
Rick Johnson
rantingrickjohnson at gmail.com
Wed Mar 16 18:50:53 EDT 2016
Has anyone else found this to be too syntactically noisy?
from module import Foo as _Foo, bar as _bar
That is horrifically noisy IMO. The problem is, how do we
remove the noise without sacrificing intuitiveness? My first
idea was to do this:
from module import_private Foo, bar
And while it's self explanatory, it's also too long. So i
thought...
from module _import Foo, bar
I'm leaning more towards the latter, but i'm not loving it
either. Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160316/be969cab/attachment.html>
More information about the Python-ideas
mailing list