> So how about extending Python so that, for example,
>    {=(1 + bar), }
> is equivalent to
>    {'1 + bar': 1 + bar, }
> 
> The basic idea is Anders's, recast to avoid Chris's problem.

Chris' problem isn't an actual problem though. Its just a few sentences in a 
PEP. It might be a problem for other python implementations but I'm gonna put 
say 100 dollars on that it's not actually so. Pypy, jython, ironpython, who 
else? Without looking I'm betting they have the same implementation detail. 

Any takers on such a bet? One is not allowed to look before taking the bet but 
I can't check that so scout honor applies. 

> Anders: Are you willing to accept this change, if need be?

I would but I think it's worse in every possible way :P It looks like a set, 
not a dict for example.

/ Anders
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to