classification
Title: decimal.py: issues reported by pychecker
Type: Stage: resolved
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: mmokrejs, r.david.murray
Priority: normal Keywords:

Created on 2015-12-28 10:14 by mmokrejs, last changed 2015-12-28 16:24 by r.david.murray. This issue is now closed.

Messages (2)
msg257111 - (view) Author: Martin Mokrejs (mmokrejs) Date: 2015-12-28 10:14
I use pychecker to check my code. It complains about decimal.py from python-2.7.10 itself:

[system path]/decimal.py:1345: INTERNAL ERROR -- STOPPED PROCESSING FUNCTION --
        Traceback (most recent call last):
          File "/usr/lib64/python2.7/site-packages/pychecker/warn.py", line 242, in _checkFunction
            _checkCode(code, codeSource)
          File "/usr/lib64/python2.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

[system path]/decimal.py:1546: Invalid arguments to (__floordiv__), got 3, expected 2
[system path]/decimal.py:1574: Invalid arguments to (__rfloordiv__), got 3, expected 2
[system path]/decimal.py:1997: INTERNAL ERROR -- STOPPED PROCESSING FUNCTION --
        Traceback (most recent call last):
          File "/usr/lib64/python2.7/site-packages/pychecker/warn.py", line 242, in _checkFunction
            _checkCode(code, codeSource)
          File "/usr/lib64/python2.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

[system path]/decimal.py:2173: Invalid arguments to (__pow__), got 4, expected 3
[system path]/decimal.py:2389: Invalid arguments to (__rpow__), got 3, expected 2
[system path]/decimal.py:2692: INTERNAL ERROR -- STOPPED PROCESSING FUNCTION --
        Traceback (most recent call last):
          File "/usr/lib64/python2.7/site-packages/pychecker/warn.py", line 242, in _checkFunction
            _checkCode(code, codeSource)
          File "/usr/lib64/python2.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
msg257117 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-12-28 16:24
That INTERNAL ERROR would be a bug in pychecker.
History
Date User Action Args
2015-12-28 16:24:46r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg257117

resolution: third party
stage: resolved
2015-12-28 10:14:37mmokrejssettitle: decimal.py: issues reprted by pychecker -> decimal.py: issues reported by pychecker
2015-12-28 10:14:28mmokrejscreate