Comment 14 for bug 456870

Revision history for this message
Tom Fleck (tjf-ocsystems) wrote :

Thanks EKR. We've been getting the same thing with 2.6.4 on linux on all our code.
I tried your change, but got an exception elsewhere whose traceback ended at

    for infered in callee.infer_call_result(self, callcontext):
  File "/usr/local/lib/python2.6/site-packages/logilab/astng/infutils.py", line
298, in infer_call_result
    for node in self._proxied.igetattr('__call__', context):
AttributeError: 'NoneType' object has no attribute 'igetattr'

Myself, I think the code really does intend to use a different variable __proxied but the call to hasattr() causes recursion. I just changed it as follows:

def _set_proxied(const):
    return _CONST_PROXY[const.value.__class__]

and recursion and above problem went away. Not to say this is the right fix, just that it's quiet now.
.