A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-January/147247.html below:

[Python-Dev] Generator objects and list comprehensions?

[Python-Dev] Generator objects and list comprehensions? [Python-Dev] Generator objects and list comprehensions?Sven R. Kunze srkunze at mail.de
Wed Jan 25 12:34:36 EST 2017
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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4