[issue10544] yield expression inside generator expression does nothing

Raymond Hettinger report at bugs.python.org
Sun Nov 28 20:03:42 CET 2010


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

This discussion should probably be moved to python-dev.  With tools like Twisted's inlineDefer or the Monocle package, there is a growing need to be able to use yield in complex expressions.  Yet, that goes against the trend toward making lists comps more like genexps and less like sugar for a simple for-loop accumulator.

Guido, do you have any thoughts on the subject?  Mark it a documentation issue or try out Benjamin's fix?

----------
assignee:  -> gvanrossum
nosy: +gvanrossum
versions: +Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10544>
_______________________________________


More information about the Python-bugs-list mailing list