Quoting Sylvain Thénault <sylvain.thena...@logilab.fr>:

On 10 novembre 17:08, benja...@gamr7.com wrote:
Hi,

I'm trying to setup a pre-commit hook on my git-trunk. This hook
call pylint on the modified/added files.
It works with Python2.5 but now i'm on Ubuntu Karmic with Python2.6
and I get a maximum recursion depth exceeded.

For both version of Python my pyling config is the same :
pylint 0.18.1,
astng 0.19.1, common 0.44.0

I put the traceback in case it would be useful.
[snip]
line 202, in root
    return self.parent.root()
...
RuntimeError: maximum recursion depth exceeded

I can't do anything without some (smallest piece as possible of) code
to reproduce the pb...
--
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org



Hi,

In fact I tested it a little more and it happens whenever I use some object from Panda3D (http://www.panda3d.org) Here's the code I tested which uses some object from Panda3D. It's the only test I did that gives this result :

=======================================================

from pandac.PandaModules import WindowProperties


def main() :
    props = WindowProperties().getDefault()
#    props.setSize(800,600)
    # ==
    return props


if __name__ == '__main__':
    main()
========================================================

If I don't call "getDefault" or "setSize", I have no problem though.

Hope it will help.
Thanks again.
Benjamin

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to