[Python-projects] ZeroDivisionError with pylint
Sylvain Thénault
sylvain.thenault at logilab.fr
Tue May 13 12:05:22 CEST 2008
On Mon, May 12, 2008 at 06:28:21AM +0900, MATSUI Tetsushi wrote:
> Hello,
Hello,
> I've told that pylint stops with ZeroDivisionError for one of the
> files in my project. I haven't tried to minimize the test case,
> but here is the traceback I get:
>
> Traceback (most recent call last):
[snip]
> File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/inference.py", line 454, in _infer_operator
> value = impl(lhsvalue, rhsvalue)
> File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/inference.py", line 479, in <lambda>
> return _infer_operator(self, context=context, impl=lambda a,b: a/b, meth='__div__')
> ZeroDivisionError: integer division or modulo by zero
>
>
> The file is elliptic.py in NZMATH-0.90.0 (downloadable at
> http://download.sourceforge.net/nzmath/NZMATH-0.90.0.tar.gz).
>
> The versions I'm using:
> pylint 0.14
> astng 0.17.2
> logilab-common 0.31.0
hum, I think I can see the problem and I've checked-in a fix for this in
astng repository. Thanks,
--
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