Message334192
> I'm off to write an ugly `next()` wrapper then.
Wouldn't it be simpler to re-design the generators to yield the final
result instead of returning it? To process the final item differently
from the rest, you just need something like this:
last = next(it)
for x in it:
process(last)
last = x
special_handling(last) |
|
Date |
User |
Action |
Args |
2019-01-21 23:38:44 | steven.daprano | set | recipients:
+ steven.daprano, terry.reedy, Bryan Koch, greg.ewing |
2019-01-21 23:38:43 | steven.daprano | link | issue35756 messages |
2019-01-21 23:38:42 | steven.daprano | create | |
|