Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0e79b7e

Browse files
committed
Clarify the existence of the <> operator in Grammar/Grammar with a comment, for issue 13239
1 parent 9ec2593 commit 0e79b7e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Grammar/Grammar

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ or_test: and_test ('or' and_test)*
8888
and_test: not_test ('and' not_test)*
8989
not_test: 'not' not_test | comparison
9090
comparison: expr (comp_op expr)*
91+
# <> isn't actually a valid comparison operator in Python. It's here for the
92+
# sake of a __future__ import described in PEP 401
9193
comp_op: '<'|'>'|'=='|'>='|'<='|'<>'|'!='|'in'|'not' 'in'|'is'|'is' 'not'
9294
star_expr: '*' expr
9395
expr: xor_expr ('|' xor_expr)*

0 commit comments

Comments
 (0)