[Python-projects] astng crashes on yield expression

Huurne, Maarten ter maarten.ter.huurne at philips.com
Fri Mar 27 18:29:23 CET 2009


> 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.

Bye,
                Maarten


The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.


More information about the Python-Projects mailing list