Rémi Lapeyre <remi.lape...@henki.fr> added the comment:

I don't think all errors can be documented, csv iterate over the object but has 
no idea what it is. When writing for example, anything could happen, from a 
socket timing out, permissions errors, the underlying media being removed not 
properly, the media having no more space, etc...

ISTM that catching all those exceptions and hiding them behind csv.Error is bad 
practice and not recommended. In C++, uncaught exceptions are part of the 
function signature so it easier to do this but in Python we have no idea what 
the object you gave can raise when iterating over it.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36975>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to