Benjamin Peterson <benja...@python.org> added the comment: On Sat, Dec 27, 2008 at 11:41 AM, Georg Brandl <rep...@bugs.python.org> wrote: > > Georg Brandl <ge...@python.org> added the comment: > > I didn't find it, but someone from the German Python webforum. :) > > Hmm, I wonder why lambda: (yield 1) alone doesn't give [1, None]. (That > should also go into the test case.)
Actually, I don't think the return value should even make it's way to the list. Generator lambdas shouldn't have any return value IMO. > > Anyway, perhaps yield in lambdas should be forbidden. Probably too late now for 2.x and 3.x. _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4748> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com