Clarify the existence of the <> operator in Grammar/Grammar with a comment. Closes issue 13239

This commit is contained in:
Eli Bendersky 2011-11-14 01:18:24 +02:00
commit 84b48a6c46
1 changed files with 2 additions and 0 deletions

View 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)*