summaryrefslogtreecommitdiffstats
path: root/Lib/dis.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-11-08 15:05:21 (GMT)
committerGuido van Rossum <guido@python.org>1993-11-08 15:05:21 (GMT)
commite65cce5eec23812d77a54095209c923937cc3c92 (patch)
treeed0b87870ad9c6278e43acf63685b8823cce018c /Lib/dis.py
parentdb65a6ce556b1e311d03837fbf85ca52ef2c5d07 (diff)
downloadcpython-e65cce5eec23812d77a54095209c923937cc3c92.zip
cpython-e65cce5eec23812d77a54095209c923937cc3c92.tar.gz
cpython-e65cce5eec23812d77a54095209c923937cc3c92.tar.bz2
* string.py: added rindex(), rfind(); changed index() to interpret
negative start indices starting from the right. * ftplib.py: debug() -> set_debuglevel(); change demo to use __init__(). * os.py: added execl, execlp, and execvp. * lambda.py: removed (now that we have built-in map, reduce, bagof, lambda) * test_b{1,2}.py, testall.out: added tests for bagof, lambda, map, reduce * commands.py: use os, not posix * test_grammar.py: make it easy to disable non-portable int overflow tests * dis.py: don't abuse range()
Diffstat (limited to 'Lib/dis.py')
-rw-r--r--Lib/dis.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/dis.py b/Lib/dis.py
index b79df47..cd62500 100644
--- a/Lib/dis.py
+++ b/Lib/dis.py
@@ -68,8 +68,8 @@ hasname = []
hasjrel = []
hasjabs = []
-opname = range(256)
-for op in opname: opname[op] = '<' + `op` + '>'
+opname = [''] * 256
+for op in range(256): opname[op] = '<' + `op` + '>'
def def_op(name, op):
opname[op] = name