[Python-Dev] python3k vs _ast

R. David Murray rdmurray at bitdance.com
Wed Nov 17 15:19:35 CET 2010


On Wed, 17 Nov 2010 07:36:37 -0600, Benjamin Peterson <benjamin at python.org> wrote:
> 2010/11/17 Oleg Broytman <phd at phd.pp.ru>:
> > Seems to be rather a usage question, not a development question (python-dev
> > is about *developing* python, not *using* it).
> 
> Well, technically I think it's a feature request.
> 
> >
> > On Wed, Nov 17, 2010 at 01:48:06PM +0100, Emile Anclin wrote:
> >> hello everybody,
> >>
> >> migrating Pylint to python3.x, we encounter a little problem :
> >> in the tree generated by _ast, if we consider a "args" node (representing
> >> an argument of a function), the "lineno" (and the "col_offset")
> >> information disappeared from those nodes. Is there a particular
> >> reason for that ? In python2.x, the "args" nodes were just "Name" nodes,
> >> and as for now we keep them as "AssName" nodes in astng/pylint and would
> >> like to know where it was defined.
> 
> I wouldn't object to adding them back if you want to file a bug report.

It also seems to me that it was a perfectly appropriate question
for this list.  The question was "why did you developers drop this
(obscure) feature that we depend on in Python3?"  I don't think that
question would make sense on python-list.  Granted, there's a fuzzy
line there, but pylint is really development infrastructure :)

The python-porting list would have been a good alternate choice.

--
R. David Murray                                      www.bitdance.com


More information about the Python-Dev mailing list