Email Re: [Python-projects] Ignore line/block

from
subject
Re: [Python-projects] Ignore line/block
date
2005/07/12 14:00
On Tue, Jul 12, 2005 at 01:47:54PM +0200, Neil Benn wrote:
> Hello,

>          Looking through the docs I can see that it is possible to 
> enable/disable messages for a module - however is it possible to 
> enable-disable message for a section of code.  For example I have :

It is currently not possible to do that, but you're not the first one to
inquire about this (see for example
http://lists.logilab.org/pipermail/python-projects/2005-June/000357.html
for a short thread that occured last month), and it is planned for a
future release of pylint. 

My personnal view on this is that pylint is not always right (and
indeed, pylint does quite often raise false warnings). Putting a comment
in the except block stating that this is a case where the exception is
ignored on purpose and living with the warning, is fine. 
 

-- 
Alexandre Fayolle                              LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org

is a reply to
has reply