[Python-checkins] cpython (3.2): Clarify the existence of the <> operator in Grammar/Grammar with a comment, for
eli.bendersky
python-checkins at python.org
Mon Nov 14 00:08:12 CET 2011
http://hg.python.org/cpython/rev/a259511351d9
changeset: 73542:a259511351d9
branch: 3.2
parent: 73536:11f92e6d8871
user: Eli Bendersky <eliben at gmail.com>
date: Mon Nov 14 01:16:31 2011 +0200
summary:
Clarify the existence of the <> operator in Grammar/Grammar with a comment, for issue 13239
files:
Grammar/Grammar | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Grammar/Grammar b/Grammar/Grammar
--- a/Grammar/Grammar
+++ b/Grammar/Grammar
@@ -88,6 +88,8 @@
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)*
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list