On 25.01.2017 07:28, Joe Jevnik wrote:

That was a long way to explain what the problem was. I think that that solution is to stop using `yield` in comprehensions because it is confusing, or to make `yield` in a comprehension a syntax error.


Same here; mixing comprehensions and yield (from) can't be explained easily. A SyntaxError would be most appropriate.

Regards,
Sven
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to