[Python-projects] Syntax Errors while installing PyLint
Aurélien Campéas
aurelien.campeas at logilab.fr
Wed Oct 10 18:05:56 CEST 2007
On Wed, Oct 10, 2007 at 10:58:38AM -0500, Meding, Olaf wrote:
> Got several syntax errors when I tried to install PyLint (copy/pasted
> the first 2 below).
>
> I am using Python 2.3.5 on MS Windows XP Professional.
> Version of PyLint is 0.13.2
>
> Olaf
>
>
>
> byte-compiling
> C:\bn\Python23\Lib\site-packages\pylint\test\input\func_continue_
> not_in_loop.py to func_continue_not_in_loop.pyc
> File
> "C:\bn\Python23\Lib\site-packages\pylint\test\input\func_continue_not_in
> _
> loop.py", line 8
> continue
> SyntaxError: 'continue' not properly in loop
>
> byte-compiling
> C:\bn\Python23\Lib\site-packages\pylint\test\input\func_genexpr_v
> ar_scope_py24.py to func_genexpr_var_scope_py24.pyc
> File
> "C:\bn\Python23\Lib\site-packages\pylint\test\input\func_genexpr_var_sco
> p
> e_py24.py", line 5
> __revision__ = list(n for n in range(10))
> ^
> SyntaxError: invalid syntax
Hi,
It looks like the version of pylint you are trying to use wants at
least python 2.4 (the syntax error you see concerns a 'generator
expression' construct, introduced in 2.4).
The pylint maintainer might want to reply (a bit later) on whether
absent support for python 2.3 is intended or a bug. He will return
from vacation in a not too distant future.
Aurélien.
More information about the Python-Projects
mailing list