Thanks, I added the survey and a summary to the PEP. If you hear about any examples please do forward them here!
On Mon, Nov 17, 2014 at 3:56 PM, Steven D'Aprano email@example.com wrote:
On Mon, Nov 17, 2014 at 11:38:27AM -0800, Guido van Rossum wrote:
Hopefully the new version will soon be here:
Note that I am definitely not yet deciding on this PEP. I would love it
people sent in examples of code using generator expressions that would be affected by this change (either by highlighting a bug in the code or by breaking what currently works).
Over a week ago I raised this issue on python-list mailing list. I expected a storm of bike-shedding, because that's the sort of place p-l is :-) but got just two people commenting.
The thread, for anyone interested:
One response suggested that it is not generators which do the wrong thing, but comprehensions, and that comprehensions should be changed to behave like generators:
That should probably be put in the PEP, even if it is not an option being considered, it at least evidence that "some people" find the behaviour of generators more natural than that of comprehensions.
-- Steve _______________________________________________ Python-ideas mailing list Pythonfirstname.lastname@example.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/