[Python-projects] PyLint: option parsing bug

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Mar 7 09:39:39 CET 2007


On Monday 05 March à 22:04, Maarten ter Huurne wrote:
> 
> syt at logilab.fr wrote on 2007-03-05 09:58:56 PM:
> 
> > [...]
> > $ pylint -rn dummy.py --rpython-mode
> > Traceback (most recent call last):
> >   File "/usr/bin/pylint", line 4, in ?
> >     lint.Run(sys.argv[1:])
> >   File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 778, in
> __init__
> >     preprocess_options(args, {'rpython-mode': self.cb_rpython_mode,
> >   File "/usr/lib/python2.4/site-packages/pylint/lint.py", line 758, in
> > preprocess_options
> >     search_for[option](option, args[i + 1])
> > IndexError: list index out of range
> > ===
> >
> > > If I specify the options in the right order ("pylint --rpython-mode -rn
> > > dummy.py") it works fine.
> >
> > But you get reports displayed anyway, no ?
> 
> No, PyLint does not run any checks and does not display any reports. It seems
> it never gets past the option parsing stage.

well, should be fixed in the repository anyway
-- 
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