Issue #21972: Make it clear that the PEP 401 future import works,

despite the PEP being rejected.
This commit is contained in:
Martin v. Löwis 2014-08-05 17:56:52 +02:00
parent 7c549c4e64
commit ec3af4e6aa
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ and_test: not_test ('and' not_test)*
not_test: 'not' not_test | comparison not_test: 'not' not_test | comparison
comparison: expr (comp_op expr)* comparison: expr (comp_op expr)*
# <> isn't actually a valid comparison operator in Python. It's here for the # <> isn't actually a valid comparison operator in Python. It's here for the
# sake of a __future__ import described in PEP 401 # sake of a __future__ import described in PEP 401 (which really works :-)
comp_op: '<'|'>'|'=='|'>='|'<='|'<>'|'!='|'in'|'not' 'in'|'is'|'is' 'not' comp_op: '<'|'>'|'=='|'>='|'<='|'<>'|'!='|'in'|'not' 'in'|'is'|'is' 'not'
star_expr: '*' expr star_expr: '*' expr
expr: xor_expr ('|' xor_expr)* expr: xor_expr ('|' xor_expr)*