[Python-projects] astng crashes on yield expression
Sylvain Thénault
sylvain.thenault at logilab.fr
Fri Mar 27 18:30:33 CET 2009
Le Friday 27 March 2009 18:29:23 Huurne, Maarten ter, vous avez écrit :
> > I've summarized your reports on http://www.logilab.net/org/ticket/8771
> >
> > imo the right direction is in your first attempt, eg not considering
> > yield as
> > a statement, it should be wrapped in an Assign or Discard statement
> > node.
>
> Actually the _ast output has the Yield wrapped in an Expr, which is renamed
> to Discard in astng. However, the TreeRebuilder removes that wrapper node.
yep, because I didn't remember that py2.5 change at that time, I thought that
wrapping node wasn't necessary. So we should stop remove it (and probably add
this wrapping node when using compiler).
--
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-Projects
mailing list