From 0e79b7e92cf0d2606e17cb96a60c751c5b837604 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Mon, 14 Nov 2011 01:16:31 +0200 Subject: [PATCH] Clarify the existence of the <> operator in Grammar/Grammar with a comment, for issue 13239 --- Grammar/Grammar | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Grammar/Grammar b/Grammar/Grammar index 89f4c3614ed..cea68de24c4 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)*