[Python-checkins] CVS: python/nondist/sandbox/help inspect.py,1.1,1.2
Ka-Ping Yee
python-dev@python.org
Sun, 14 Jan 2001 03:16:14 -0800
Update of /cvsroot/python/python/nondist/sandbox/help
In directory usw-pr-cvs1:/tmp/cvs-serv14352
Modified Files:
inspect.py
Log Message:
Add opcode UNPACK_SEQUENCE to getargs for Python 2.0.
Index: inspect.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/help/inspect.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** inspect.py 2001/01/14 02:27:10 1.1
--- inspect.py 2001/01/14 11:16:11 1.2
***************
*** 424,428 ****
value = ord(code[step]) + ord(code[step+1])*256
step = step + 2
! if opname == 'UNPACK_TUPLE':
remain.append(value)
count.append(value)
--- 424,428 ----
value = ord(code[step]) + ord(code[step+1])*256
step = step + 2
! if opname in ['UNPACK_TUPLE', 'UNPACK_SEQUENCE']:
remain.append(value)
count.append(value)