eryksun added the comment: You attached a corrupt bytecode cache for stdlib bisect.py:
>>> f = open('test.pyc', 'rb') >>> magic,tstamp = struct.unpack('<ll', f.read(8)) >>> magic27 = 62211 | (ord('\r') << 16) | (ord('\n') << 24) >>> magic == magic27 True >>> datetime.fromtimestamp(tstamp) datetime.datetime(2011, 3, 8, 2, 39, 36) >>> code = marshal.load(f) >>> dis.dis(code) 1 0 LOAD_CONST 0 ('Bisection algorithms.') 3 STORE_NAME 0 (__doc__) 3 6 LOAD_CONST 1 (0) 9 LOAD_CONST 8 (None) 12 LOAD_CONST 2 (<code object insort_right at 0x7f71bf596db0, file "C:\Python27\Lib\bisect.py", line 3>) 15 MAKE_FUNCTION 2 18 STORE_NAME 2 (insort_right) 22 21 LOAD_NAME 65282 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dis.py", line 43, in dis disassemble(x) File "/usr/lib/python2.7/dis.py", line 97, in disassemble print '(' + co.co_names[oparg] + ')', IndexError: tuple index out of range It's no surprise if this bad file crashed the interpreter. Just delete it. ---------- nosy: +eryksun _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23281> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com