diff options
author | Eli Bendersky <eliben@gmail.com> | 2011-11-14 01:16:31 +0200 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2011-11-14 01:16:31 +0200 |
commit | b8620762fea2f992711c6b48d9a1a6c925fa0c33 (patch) | |
tree | 51369f606f92bc14dcebc9e9a31fa1e443f3647b /Grammar | |
parent | e58cce34581e15d114e3ceb1af9916783a50a398 (diff) | |
download | cpython-b8620762fea2f992711c6b48d9a1a6c925fa0c33.tar.gz |
Clarify the existence of the <> operator in Grammar/Grammar with a comment, for issue 13239
Diffstat (limited to 'Grammar')
-rw-r--r-- | Grammar/Grammar | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar index 89f4c3614e..cea68de24c 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)* |