summaryrefslogtreecommitdiffstats
path: root/Lib/compiler/transformer.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-08-24 03:53:23 (GMT)
committerGuido van Rossum <guido@python.org>2006-08-24 03:53:23 (GMT)
commitb053cd8f40dd19985b16f50661640dcefb69888f (patch)
tree88e1c2ce636a6df402a97c51ea9067a46735120a /Lib/compiler/transformer.py
parent01c77c66289f8e9c8d15b8da623fae4014ec2edb (diff)
downloadcpython-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/compiler/transformer.py')
-rw-r--r--Lib/compiler/transformer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py
index 091d599..b564300 100644
--- a/Lib/compiler/transformer.py
+++ b/Lib/compiler/transformer.py
@@ -618,7 +618,7 @@ class Transformer:
for i in range(2, len(nodelist), 2):
nl = nodelist[i-1]
- # comp_op: '<' | '>' | '=' | '>=' | '<=' | '<>' | '!=' | '=='
+ # comp_op: '<' | '>' | '=' | '>=' | '<=' | '!=' | '=='
# | 'in' | 'not' 'in' | 'is' | 'is' 'not'
n = nl[1]
if n[0] == token.NAME:
@@ -1396,7 +1396,7 @@ _doc_nodes = [
symbol.power,
]
-# comp_op: '<' | '>' | '=' | '>=' | '<=' | '<>' | '!=' | '=='
+# comp_op: '<' | '>' | '=' | '>=' | '<=' | '!=' | '=='
# | 'in' | 'not' 'in' | 'is' | 'is' 'not'
_cmp_types = {
token.LESS : '<',