Message238621
@Serhiy
in this line of code:
reader = csv.DictReader(fileobj, fieldnames=next(csv.reader(fileobj)))
csv.reader(fileobj) returns the generator created by fileobj.__iter__, but no reference to it is kept so the object gets destroyed right afterwards. This closes the generator and because it uses yield from also the contained subgenerator, which is the file itself. |
|
Date |
User |
Action |
Args |
2015-03-20 09:04:13 | wolma | set | recipients:
+ wolma, georg.brandl, paul.moore, ncoghlan, vstinner, ethan.furman, python-dev, serhiy.storchaka, bkabrda, sYnfo |
2015-03-20 09:04:13 | wolma | set | messageid: <1426842253.68.0.250287373675.issue23700@psf.upfronthosting.co.za> |
2015-03-20 09:04:13 | wolma | link | issue23700 messages |
2015-03-20 09:04:13 | wolma | create | |
|