] > Re: [Python-projects] Warning with >> Operator (Logilab.org)

Email Re: [Python-projects] Warning with >> Operator

from
subject
Re: [Python-projects] Warning with >> Operator
date
2005/03/24 14:08
On Thursday 24 March à 13:39, Kring Gerhard wrote:
> Dear pyLint developers,
> I have a small improvement proposal:
> Currently I get the warning:

> C0323:239:EventProcessor.processCmdOutput: Operator not followed by a space
>         print >>outputFile, diagData

> I have seen  this format in many Python books and I find it o.k.
> Why not eliminate this specific warning for the unary >> Operator?

Hum... I agree. I'll take a look at this but this kind of bad formatting
error are detected using a set of regular expressions, not by analyzing
the abstract syntax tree where formatting details have been removed, and
so it's not easy to distinct between the unary and binary >> operator. 
I'm not sure it's worth complicating existant regexps to handle this...
However a patch would be welcome ! ;o)

regards
-- 
Sylvain Thénault                               LOGILAB, Paris (France).

http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org

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


has reply