[Python-projects] pylint bug (unreachable code)
Sylvain Thénault
sylvain.thenault at logilab.fr
Mon Mar 9 11:32:18 CET 2009
Le Tuesday 03 March 2009 00:16:04 Vincent Legoll, vous avez écrit :
> Hello,
Hi,
> In the following code:
>
> ======================
> def a():
> try:
> return
> except:
> return
>
> raise Exception('a')
> ======================
>
> Pylint does not report unreachable code, whereas
> if we remove the try / except from around the return,
> it does...
>
> Is this an already known deficiency ?
nop
> Is this not detectable ?
it's not detected right now, but I think it should be detectable... I've added
a ticket for this: http://www.logilab.org/ticket/8355
--
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