Hi all, Just got a Python stacktrace out of pylint. (I guess bug reports should go to here: tried to register on logilab.org but am getting certificate errors)
if I run pylint 0.19 on a file containing the following code x = "" x += "foo" print x.strip() I get the following stack trace: Traceback (most recent call last): File "/usr/local/bin/pylint", line 5, in ? pkg_resources.run_script('pylint==0.19.0', 'pylint') File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 448, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1166, in run_script execfile(script_filename, namespace, namespace) File "/usr/local/share/python/2.4/pylint-0.19.0-py2.4.egg/EGG-INFO/scripts/pylint", line 4, in ? lint.Run(sys.argv[1:]) File "/usr/local/share/python/2.4/pylint-0.19.0-py2.4.egg/pylint/lint.py", line 891, in __init__ linter.check(args) File "/usr/local/share/python/2.4/pylint-0.19.0-py2.4.egg/pylint/lint.py", line 502, in check self.check_astng_module(astng, checkers) File "/usr/local/share/python/2.4/pylint-0.19.0-py2.4.egg/pylint/lint.py", line 578, in check_astng_module self.astng_events(astng, [checker for checker in checkers File "/usr/local/share/python/2.4/pylint-0.19.0-py2.4.egg/pylint/lint.py", line 596, in astng_events self.astng_events(child, checkers, _reversed_checkers) File "/usr/local/share/python/2.4/pylint-0.19.0-py2.4.egg/pylint/lint.py", line 596, in astng_events self.astng_events(child, checkers, _reversed_checkers) File "/usr/local/share/python/2.4/pylint-0.19.0-py2.4.egg/pylint/lint.py", line 593, in astng_events checker.visit(astng) File "/usr/local/share/python/2.4/logilab_astng-0.19.3-py2.4.egg/logilab/astng/utils.py", line 323, in visit method(node) File "/usr/local/share/python/2.4/pylint-0.19.0-py2.4.egg/pylint/checkers/typecheck.py", line 239, in visit_callfunc called = safe_infer(node.func) File "/usr/local/share/python/2.4/pylint-0.19.0-py2.4.egg/pylint/checkers/utils.py", line 38, in safe_infer value = inferit.next() File "/usr/local/share/python/2.4/logilab_astng-0.19.3-py2.4.egg/logilab/astng/infutils.py", line 203, in wrapped for res in _func(node, context, **kwargs): File "/usr/local/share/python/2.4/logilab_astng-0.19.3-py2.4.egg/logilab/astng/infutils.py", line 231, in wrapper for node in func(*args, **kwargs): File "/usr/local/share/python/2.4/logilab_astng-0.19.3-py2.4.egg/logilab/astng/inference.py", line 253, in infer_getattr for owner in self.expr.infer(context): File "/usr/local/share/python/2.4/logilab_astng-0.19.3-py2.4.egg/logilab/astng/infutils.py", line 203, in wrapped for res in _func(node, context, **kwargs): File "/usr/local/share/python/2.4/logilab_astng-0.19.3-py2.4.egg/logilab/astng/infutils.py", line 168, in _infer_stmts for infered in stmt.infer(context): File "/usr/local/share/python/2.4/logilab_astng-0.19.3-py2.4.egg/logilab/astng/infutils.py", line 203, in wrapped for res in _func(node, context, **kwargs): File "/usr/local/share/python/2.4/logilab_astng-0.19.3-py2.4.egg/logilab/astng/infutils.py", line 203, in wrapped for res in _func(node, context, **kwargs): File "/usr/local/share/python/2.4/logilab_astng-0.19.3-py2.4.egg/logilab/astng/inference.py", line 399, in infer_augassign for val in _infer_binop(self.op, lhs, self.value, context, failures): File "/usr/local/share/python/2.4/logilab_astng-0.19.3-py2.4.egg/logilab/astng/inference.py", line 350, in _infer_binop for valnode in operand1.infer_binary_op(operator, operand2, context): File "/usr/local/share/python/2.4/logilab_astng-0.19.3-py2.4.egg/logilab/astng/infutils.py", line 221, in wrapper for node in func(*args, **kwargs): File "/usr/local/share/python/2.4/logilab_astng-0.19.3-py2.4.egg/logilab/astng/protocols.py", line 81, in const_infer_binary_op impl = BIN_OP_IMPL[operator] KeyError: '+=' Regards, Geoff Bache _______________________________________________ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects