#325 Internal error for operator //=

0.8.18
open
nobody
None
5
2013-03-25
2013-03-25
Anonymous
No

Pychecker appears to fail on the 'floor division assignment' operator //=.

Sample code:
foo = 17
rem = foo % 5
foo //= 5

print foo

Result:

Processing module thud (./thud.py)...
3

Warnings...

thud.py:3: INTERNAL ERROR -- STOPPED PROCESSING FUNCTION --
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pychecker/warn.py", line 242, in _checkFunction
_checkCode(code, codeSource)
File "/Library/Python/2.7/site-packages/pychecker/warn.py", line 155, in _checkCode
raise NotImplementedError('No DISPATCH member for op %r' % op)
NotImplementedError: No DISPATCH member for op 28

It's easy to work around by simply changing to 'foo = foo // 5'.

Discussion