[Python-projects] Pylint Recursion Problem.
Sylvain Thénault
sylvain.thenault at logilab.fr
Tue May 13 11:58:40 CEST 2008
On Thu, Apr 17, 2008 at 02:19:11PM -0400, David Marsh wrote:
> Hello,
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.
gargl. Unfortunaly I've no time for this right now, but I've added a
ticket to the tracker so I won't forget:
https://www.logilab.net/elo/ticket/4977
thank you for the report.
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Python et calcul scientifique: http://www.logilab.fr/science
More information about the Python-Projects
mailing list