mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
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)'.
This commit is contained in:
parent
01c77c6628
commit
b053cd8f40
36 changed files with 171 additions and 178 deletions
|
@ -478,7 +478,7 @@ ast_for_augassign(const node *n)
|
|||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue