Author jdufresne
Recipients jdufresne, r.david.murray
Date 2015-01-06.03:39:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420515585.03.0.673215439962.issue23171@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-01-06 03:39:45jdufresnesetrecipients: + jdufresne, r.david.murray
2015-01-06 03:39:45jdufresnesetmessageid: <1420515585.03.0.673215439962.issue23171@psf.upfronthosting.co.za>
2015-01-06 03:39:44jdufresnelinkissue23171 messages
2015-01-06 03:39:44jdufresnecreate