[Python-Dev] PEP 492 vs. PEP 3152, new round
Greg
greg.ewing at canterbury.ac.nz
Fri May 1 02:52:55 CEST 2015
On 1/05/2015 5:38 a.m., Guido van Rossum wrote:
> you can write "not -x" but you can't write "- not x".
That seems just as arbitrary and unintuitive, though.
There are some other unintuitive consequences as well, e.g.
you can write
not a + b
but it's not immediately obvious that this is parsed as
'not (a + b)' rather than '(not a) + b'.
The presence of one arbitrary and unintuitive thing in the
grammar is not by itself a justification for adding another one.
--
Greg
More information about the Python-Dev
mailing list