[Python-projects] Pylint Recursion Problem.
David Marsh
david.d.marsh at huskymail.uconn.edu
Thu Apr 17 20:19:15 CEST 2008
Hello,
I'm having an issue with pylint (0.14.0 on Python2.5. I have isolated
two lines of code that, when uncommented, cause pylint to enter into
an infinite loop (and consume a large amount of CPU cycles). I am
forced to kill the process.
This is SQLAlchemy 0.4.5
---------------------------------
from sqlalchemy import MetaData
metadata = MetaData()
---------------------------------
There is other code in the file but I have commented it out until only
those two lines are the two that cause the problem (if you remove either
line the process is fine)
Below is a partial stack trace I got when I ran it from the command line
(the whole thing is huge). Hopefully it gives you an idea of what is
going on.
for res in _func(node, context, **kwargs):
File "C:\Python25\lib\site-packages\logilab\astng\__init__.py", line
122, in _
infer_stmts
for infered in stmt.infer(context):
File "C:\Python25\lib\site-packages\logilab\astng\inference.py", line
45, in w
rapped
for res in _func(node, context, **kwargs):
File "C:\Python25\lib\site-packages\logilab\astng\__init__.py", line
122, in _
infer_stmts
for infered in stmt.infer(context):
File "C:\Python25\lib\site-packages\logilab\astng\inference.py", line
45, in w
rapped
for res in _func(node, context, **kwargs):
File "C:\Python25\lib\site-packages\logilab\astng\inference.py", line
274, in
infer_callfunc
for callee in self.node.infer(context):
File "C:\Python25\lib\site-packages\logilab\astng\inference.py", line
42, in w
rapped
context.push(node)
File "C:\Python25\lib\site-packages\logilab\astng\__init__.py", line 72,
in pu
sh
self.path.append( (node, name) )
I installed the latest versions of logilab.astng and logilab.common a few
days ago.
I'm using it in pydev for eclipse and it hurts me to disable it but I have
no choice for the time being.
Thank you,
-David Marsh
More information about the Python-Projects
mailing list