]> granicus.if.org Git - python/commitdiff
Clarify the existence of the <> operator in Grammar/Grammar with a comment, for issue...
authorEli Bendersky <eliben@gmail.com>
Sun, 13 Nov 2011 23:16:31 +0000 (01:16 +0200)
committerEli Bendersky <eliben@gmail.com>
Sun, 13 Nov 2011 23:16:31 +0000 (01:16 +0200)
Grammar/Grammar

index 89f4c3614ed8d7d9d810a4682f0060c970462a81..cea68de24c4179b07f2b0c64516bd048057627eb 100644 (file)
@@ -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)*