parsing tree from excel sheet

Chris Angelico rosuav at gmail.com
Thu Jan 29 18:46:41 EST 2015


On Fri, Jan 30, 2015 at 8:32 AM, alb <al.basili at gmail.com> wrote:
> Ok, that either means I need to upgrade to 3.3 or need to modify the
> snippet to a suitable syntax that would work with other versions.

You could replace "yield from child.show2()" with:

for val in child.show2(): yield val

and it should work. However, you're running Python 3.1, and a *lot* of
improvements have been made since then, so it's well worth upgrading.

ChrisA



More information about the Python-list mailing list