Message233501
I have created an initial patch such that writerow() now allows generators. I have also added a unit test to demonstrate the fix.
The code now coerces iterators (and generators) to a list, then operates on the result. I would have preferred to simply iterate over the argument, however, there is a special case where the length of the argument is exactly 1. So coercing to a list makes checking the length simpler.
All feedback welcome. |
|
| Date |
User |
Action |
Args |
| 2015-01-06 03:39:45 | jdufresne | set | recipients:
+ jdufresne, r.david.murray |
| 2015-01-06 03:39:45 | jdufresne | set | messageid: <[email protected]> |
| 2015-01-06 03:39:44 | jdufresne | link | issue23171 messages |
| 2015-01-06 03:39:44 | jdufresne | create | |
|