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

Michael Selik michael.selik at gmail.com
Tue Jun 14 07:58:17 EDT 2016


On Tue, Jun 14, 2016 at 3:00 AM Stephen J. Turnbull <stephen at xemacs.org>
wrote:

>  > On Jun 11, 2016, at 05:00 PM, Barry Scott wrote:
>  >
>  > >What is the behavour in this case:
>  > >   mydict[ index ] = Record( __LHS__ )
>
> But IMO this is unacceptably ugly given that its use cases are so
> small.  A dunder keyword that is used by design even in main programs?
>

One use case is replacing usage of ``sys.getframe()``. Perhaps that
suggests the best replacement is a new sys module function ``sys.getlhs()``
or ``sys.getname()``.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160614/742c66fb/attachment.html>


More information about the Python-ideas mailing list