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/2009-March/087805.html below:

[Python-Dev] "yield" in list comprehensions

[Python-Dev] "yield" in list comprehensions [Python-Dev] "yield" in list comprehensionsAntoine Pitrou solipsis at pitrou.net
Fri Mar 27 16:58:18 CET 2009
Hello,

Just for the record, I thought I'd point out this slightly exotic and funny
incompatibility between 2.x and py3k. This is due to the fact that list
comprehensions now live in their own frame, so a "yield" expression inside a
list comprehension turns the comprehension itself into a generator (rather than
the enclosing function).

http://bugs.python.org/issue5577

Regards

Antoine.


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