Hello,

On Wednesday 18 November 2009 22:19:26 James Lingard wrote:

> x = y = 0
> print ++x

> ************* Module pylint-misc
> E9800:  2: Use of the non-existent ++ operator

I have a little doubt about this message. I would not say, there is a use 
of an "non-existent operator".
It isn't an error, simply it will be considered as "(+(+a))" :

>>> a = 1
>>> ++a
1
>>> print +-a
-1
>>> print --a
1

Maybe just a warning?

-- 

Emile Anclin <emile.anc...@logilab.fr>
http://www.logilab.fr/   http://www.logilab.org/ 
Informatique scientifique & et gestion de connaissances
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to