Message 122705 - Python tracker
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?