mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
* 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()
This commit is contained in:
parent
db65a6ce55
commit
e65cce5eec
10 changed files with 161 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue