[Python-ideas] Importing public symbols and simultainiously privatizing them, is too noisy
Ben Finney
ben+python at benfinney.id.au
Wed Mar 16 19:38:22 EDT 2016
Rick Johnson
<rantingrickjohnson at gmail.com> writes:
> Has anyone else found this to be too syntactically noisy?
>
> from module import Foo as _Foo, bar as _bar
>
> That is horrifically noisy IMO.
Agreed. What is wrong with::
import lorem as _lorem
do_something_with(_lorem.Foo)
--
\ “Nothing is so common as to imitate one's enemies, and to use |
`\ their weapons.” —Voltaire, _Dictionnaire Philosophique_ |
_o__) |
Ben Finney
More information about the Python-ideas
mailing list