Mercurial > cpython-lru_cache-weakref
diff Python/ast.c @ 39648:efe3f2c0da5e
Killed the <> operator. You must now use !=.
Opportunistically also fixed one or two places where '<> None' should be
'is not None' and where 'type(x) <> y' should be 'not isinstance(x, y)'.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 24 Aug 2006 03:53:23 +0000 |
| parents | 3674f20ac781 |
| children | eb2f70fdbf32 |
line wrap: on
line diff
--- a/Python/ast.c Thu Aug 24 02:58:11 2006 +0000 +++ b/Python/ast.c Thu Aug 24 03:53:23 2006 +0000 @@ -478,7 +478,7 @@ static cmpop_ty ast_for_comp_op(const node *n) { - /* comp_op: '<'|'>'|'=='|'>='|'<='|'<>'|'!='|'in'|'not' 'in'|'is' + /* comp_op: '<'|'>'|'=='|'>='|'<='|'!='|'in'|'not' 'in'|'is' |'is' 'not' */ REQ(n, comp_op);
