[Python-projects] Syntax Errors while installing PyLint
Adrien Di Mascio
Adrien.DiMascio at logilab.fr
Wed Oct 10 18:39:19 CEST 2007
Hi,
[Meding, Olaf]
> 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
Pylint is indeed supposed to work with python2.3, at least for now.
> 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
If you take a closer look at these errors, you will see that the
problem occurs in the test suite. Some of the code snippets used in
the test suite are indeed written for python2.4 but it does not affect
pylint itself.
The real problem is that we should test disutils to ignore the
`tests` directory.
Cheers,
--
Adrien Di Mascio LOGILAB, Paris (France).
Formations Python,Zope,Debian,Calcul http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Informatique scientifique: http://www.logilab.fr/science
Python in Python: http://codespeak.net/pypy/dist/pypy/doc/index.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20071010/92f64ea2/attachment.pgp
More information about the Python-Projects
mailing list