[Python-ideas] Proposal for special name and qualname symbols

Barry Warsaw barry at python.org
Fri Jun 10 12:42:13 EDT 2016


On Jun 08, 2016, at 09:30 PM, Eric V. Smith wrote:

>SEVEN = public(__LHS__, 7)
>a_bar = public(__LHS__, Bar())

Yes, if we had __LHS__ that's how I'd write it.

>Although this might be a different version of public (or not!).

It would be, because public() wouldn't then need to poke values into the
module globals.  It would just have to return the second argument and put the
first argument in __all__.  Tools like pyflakes would stop complaining too.
Win!

-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160610/94180ec5/attachment.sig>


More information about the Python-ideas mailing list