summaryrefslogtreecommitdiff
path: root/Grammar
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2011-11-14 01:16:31 +0200
committerEli Bendersky <eliben@gmail.com>2011-11-14 01:16:31 +0200
commit0e79b7e92cf0d2606e17cb96a60c751c5b837604 (patch)
treea79e5e218cb2541468fbabe0ff9ecc73bb141832 /Grammar
parent9ec2593bdad44132c04ecde2a0a7c66b204450a4 (diff)
downloadcpython-git-0e79b7e92cf0d2606e17cb96a60c751c5b837604.tar.gz
Clarify the existence of the <> operator in Grammar/Grammar with a comment, for issue 13239
Diffstat (limited to 'Grammar')
-rw-r--r--Grammar/Grammar2
1 files changed, 2 insertions, 0 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar
index 89f4c3614e..cea68de24c 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)*