diff options
author | Eli Bendersky <eliben@gmail.com> | 2011-11-13 23:16:31 (GMT) |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2011-11-13 23:16:31 (GMT) |
commit | 0e79b7e92cf0d2606e17cb96a60c751c5b837604 (patch) | |
tree | a79e5e218cb2541468fbabe0ff9ecc73bb141832 | |
parent | 9ec2593bdad44132c04ecde2a0a7c66b204450a4 (diff) | |
download | cpython-0e79b7e92cf0d2606e17cb96a60c751c5b837604.zip cpython-0e79b7e92cf0d2606e17cb96a60c751c5b837604.tar.gz cpython-0e79b7e92cf0d2606e17cb96a60c751c5b837604.tar.bz2 |
Clarify the existence of the <> operator in Grammar/Grammar with a comment, for 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)* |