[Python-ideas] [Suspected Spam] Re: [Suspected Spam] Re: Short form for keyword arguments and dicts

Barry Warsaw barry at python.org
Tue Jun 25 20:44:44 CEST 2013


On Jun 24, 2013, at 09:13 PM, Anders Hovmöller wrote:

>Yet obviously people DO do stuff like:
>
>_('{foo}')
>
>which walks the stack to find the locals and then puts them in there. I think
>this shows there is some room for a middle ground that might disincentivize
>people from going to those extremes :P
>
>Again, it's not about the exact syntax I suggested, it's about that middle
>ground.

One difference here is that the above magic is tucked inside a library.  If
you don't like magic (or you feel it's incomprehensible), don't use the
library.  A syntactic equivalent impacts the entire language.

-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130625/2427971d/attachment-0001.pgp>


More information about the Python-ideas mailing list