diff options
author | Eli Bendersky <eliben@gmail.com> | 2011-11-13 23:18:24 (GMT) |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2011-11-13 23:18:24 (GMT) |
commit | 84b48a6c46ce7720a23d92f4d64961812d00ce1b (patch) | |
tree | d24219c304fe4991ad14ea2cb9d1c7fb798c76d5 | |
parent | 3e623243d56ca80c31ed2d3ae1f0b750c0e072aa (diff) | |
parent | 0e79b7e92cf0d2606e17cb96a60c751c5b837604 (diff) | |
download | cpython-84b48a6c46ce7720a23d92f4d64961812d00ce1b.zip cpython-84b48a6c46ce7720a23d92f4d64961812d00ce1b.tar.gz cpython-84b48a6c46ce7720a23d92f4d64961812d00ce1b.tar.bz2 |
Clarify the existence of the <> operator in Grammar/Grammar with a comment. Closes issue 13239
-rw-r--r-- | Grammar/Grammar | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar index 89f4c36..cea68de 100644 --- a/Grammar/Grammar +++ b/Grammar/Grammar @@ -88,6 +88,8 @@ or_test: and_test ('or' and_test)* and_test: not_test ('and' not_test)* not_test: 'not' not_test | comparison comparison: expr (comp_op expr)* +# <> isn't actually a valid comparison operator in Python. It's here for the +# sake of a __future__ import described in PEP 401 comp_op: '<'|'>'|'=='|'>='|'<='|'<>'|'!='|'in'|'not' 'in'|'is'|'is' 'not' star_expr: '*' expr expr: xor_expr ('|' xor_expr)* |