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

Ben Finney ben+python at benfinney.id.au
Wed Mar 16 22:05:21 EDT 2016


Rick Johnson
<rantingrickjohnson at gmail.com> writes:

> 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

It's got the strong advantage of already being an established idiom.

> but not one that fulfills my current "selfish desires" -- I need
> something sweet baby! O:-)

You're in the wrong forum, then. This is for discussing improvements to
Python.

-- 
 \      “We suffer primarily not from our vices or our weaknesses, but |
  `\    from our illusions.” —Daniel J. Boorstin, historian, 1914–2004 |
_o__)                                                                  |
Ben Finney



More information about the Python-ideas mailing list