*** Lib/dis.py Thu Sep 12 07:37:57 1996 --- Lib/dis.py Fri Sep 13 00:29:38 1996 *************** *** 40,45 **** --- 40,47 ---- print '(' + co.co_names[oparg] + ')', elif op in hasjrel: print '(to ' + `i + oparg` + ')', + elif op in haslocal: + print '(' + co.co_varnames[oparg] + ')', print def findlabels(code): *************** *** 67,72 **** --- 69,75 ---- hasname = [] hasjrel = [] hasjabs = [] + haslocal = [] opname = [''] * 256 for op in range(256): opname[op] = '<' + `op` + '>' *************** *** 184,191 **** --- 187,197 ---- def_op('RESERVE_FAST', 123) # Number of local variables hasconst.append(123) def_op('LOAD_FAST', 124) # Local variable number + haslocal.append(124) def_op('STORE_FAST', 125) # Local variable number + haslocal.append(125) def_op('DELETE_FAST', 126) # Local variable number + haslocal.append(126) def_op('SET_LINENO', 127) # Current line number SET_LINENO = 127