csv.DictReader line skipping should be considered a bug?

Skip Montanaro skip.montanaro at gmail.com
Mon Dec 4 20:03:36 EST 2017


> And I want to argue that the difference of behavior should be considered a
bug.

Sorry, that ship has sailed. If you want different behavior, subclassing
DictReader and providing your own next() implementation should be
straightforward. All you need to do is copy the existing implementation of
next() and strip out the comment and the while loop which follows it.

Skip




More information about the Python-list mailing list