Message78374
>> 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.
Yes, I think so too. I just wondered at the seemingly inconsistent
behavior right now.
>> Anyway, perhaps yield in lambdas should be forbidden.
>
> Probably too late now for 2.x and 3.x.
Right. I'd say go for applying the patch. |
|
Date |
User |
Action |
Args |
2008-12-27 18:15:40 | georg.brandl | set | recipients:
+ georg.brandl, benjamin.peterson |
2008-12-27 18:15:40 | georg.brandl | set | messageid: <1230401740.16.0.00666371405353.issue4748@psf.upfronthosting.co.za> |
2008-12-27 18:15:39 | georg.brandl | link | issue4748 messages |
2008-12-27 18:15:38 | georg.brandl | create | |
|