This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients Paweł.Zduniak, eryksun, steve.dower, tim.golden, zach.ware
Date 2015-01-20.08:56:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421744168.99.0.97566076153.issue23281@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-01-20 08:56:09eryksunsetrecipients: + eryksun, tim.golden, zach.ware, steve.dower, Paweł.Zduniak
2015-01-20 08:56:08eryksunsetmessageid: <1421744168.99.0.97566076153.issue23281@psf.upfronthosting.co.za>
2015-01-20 08:56:08eryksunlinkissue23281 messages
2015-01-20 08:56:08eryksuncreate