#311 del list_var[:] raises internal error

0.8.18
open
nobody
None
5
2012-06-18
2012-06-18
Anonymous
No

This code raises internal error:

a = [1]
del a[:]

Very similar code is OK like `del a[::]` or `del a[0:]`.

I downloaded pychecker-0.8.19.tar.gz, but it reports that version is 0.8.18

----
examle_bug.py:2: INTERNAL ERROR -- STOPPED PROCESSING FUNCTION --
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pychecker/warn.py", line 242, in _checkFunction
_checkCode(code, codeSource)
File "/usr/lib/python2.6/site-packages/pychecker/warn.py", line 155, in _checkCode
raise NotImplementedError('No DISPATCH member for op %r' % op)
NotImplementedError: No DISPATCH member for op 50

Discussion

  • Wim Lewis
    Wim Lewis
    2012-09-17

    I just hit this as well. Opcode 50 is "DELETE_SLICE" according to Include/opcode.h, so that makes sense.

     

  • Anonymous
    2013-02-23

    I just came here to report the same problem. Glad it's been reported already.