diff options
author | Guido van Rossum <guido@python.org> | 2006-08-24 03:53:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-08-24 03:53:23 (GMT) |
commit | b053cd8f40dd19985b16f50661640dcefb69888f (patch) | |
tree | 88e1c2ce636a6df402a97c51ea9067a46735120a /Lib/test/tokenize_tests.txt | |
parent | 01c77c66289f8e9c8d15b8da623fae4014ec2edb (diff) | |
download | cpython-b053cd8f40dd19985b16f50661640dcefb69888f.zip cpython-b053cd8f40dd19985b16f50661640dcefb69888f.tar.gz cpython-b053cd8f40dd19985b16f50661640dcefb69888f.tar.bz2 |
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)'.
Diffstat (limited to 'Lib/test/tokenize_tests.txt')
-rw-r--r-- | Lib/test/tokenize_tests.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/tokenize_tests.txt b/Lib/test/tokenize_tests.txt index 4ef3bf1..59e51d7 100644 --- a/Lib/test/tokenize_tests.txt +++ b/Lib/test/tokenize_tests.txt @@ -36,8 +36,8 @@ x = 1 \ x = 0 # Ordinary integers -0xff <> 255 -0377 <> 255 +0xff != 255 +0377 != 255 2147483647 != 017777777777 -2147483647-1 != 020000000000 037777777777 != -1 @@ -146,10 +146,10 @@ if 0: def d22(a, b, c=1, d=2): pass def d01v(a=1, *restt, **restd): pass -(x, y) <> ({'a':1}, {'b':2}) +(x, y) != ({'a':1}, {'b':2}) # comparison -if 1 < 1 > 1 == 1 >= 1 <= 1 <> 1 != 1 in 1 not in 1 is 1 is not 1: pass +if 1 < 1 > 1 == 1 >= 1 <= 1 != 1 != 1 in 1 not in 1 is 1 is not 1: pass # binary x = 1 & 1 |