[Tutor] Use? Abuse? Amusement? Amendments?

Gregor Lingl glingl@aon.at
Thu, 01 Aug 2002 06:40:01 +0200


Chris Kassopulo schrieb:

>Running Python 2.0.1
>
>$ python /home/ckasso/python/turtles.py
>  File "/home/ckasso/python/turtles.py", line 7
>    yield 1
>          ^
>SyntaxError: invalid syntax
>
>  
>
Of course, I forgot to mention: trees.py needs Python 2.2 or higher

This is because it's intention was (among others) to have some visual
representation of how generators work - an those were introduced
in Python only with V2.2

Gregor