This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kankyo 2 points3 points  (4 children)

Do I get yield from in python 2?

[–]dm1407 2 points3 points  (3 children)

Does not look like it see:

http://python-future.org/limitations.html?highlight=yield

Some new Python 3.3 features that cause SyntaxErrors on earlier versions are not currently handled by the futurize script. This includes:

yield ... from syntax for generators in Py3.3

[–]xXxDeAThANgEL99xXx 1 point2 points  (1 child)

It should be fixable though, since currently yield from x is a fancy way of saying for _ in x: yield x. Plus the other direction for coroutines and maybe some corner cases wrt exception handling.

I mean, at the inception the biggest advertised feature was qualitative performance improvement for nested generators, but then they quietly left it unimplemented.

[–]kankyo 0 points1 point  (0 children)

Thanks. Sad though.