[Python-Dev] To 3.0.2 or not to 3.0.2?

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Feb 18 21:21:54 CET 2009


Le Wednesday 18 February 2009 20:48:17 Benjamin Peterson, vous avez écrit :
> On Wed, Feb 18, 2009 at 9:30 AM, Guido van Rossum <guido at python.org> wrote:
> > This prompts a wild idea -- perhaps the framework of 2to3 could be
> > reused to create a new linter?
>
> The 2to3 syntax tree is probably two low-level for that. It's good for
> simple isolated transformations like print, but not so much for the
> larger scale analysis that a lint tool would require. In addition,
> we'd have to write some sort of symtable analyzer. High level AST is
> much nicer to work with that.

FYI, we (logilab) are curently working on providing a compatibility layer 
between _ast and compiler to get pylint working on py3k, py >= 2.6 and py <= 
2.5. There are some tree structure incompatibility between them which makes 
the thing not trivial but I hope we'll get somewhere soon. Of course any help 
is welcome :)

-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Python et calcul scientifique:           http://www.logilab.fr/science


More information about the Python-Dev mailing list