parsing tree from excel sheet

alb al.basili at gmail.com
Thu Jan 29 16:02:10 EST 2015


Hi Peter,

Peter Otten <__peter__ at web.de> wrote:
[]
>    def show2(self):
>        yield str(self)
>        for child in self.children:
>            yield from child.show2()

here is what I get:

> SyntaxError: invalid syntax
> debian at debian:example$ python3 export_latex.py doctree.csv 
>   File "export_latex.py", line 36
>     yield from child.show2()
>              ^
> SyntaxError: invalid syntax

and I've tried with both python and python3 (see below versions).

debian at debian:example$ python
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
debian at debian:example$ python3
Python 3.1.3 (r313:86834, Nov 28 2010, 11:28:10) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

Is it an issue related to my installation? Shall I upgrade and/or 
downgrade?

Thanks for any hint,

Al



More information about the Python-list mailing list