Message 343040 - Python tracker

Message343040

Author remi.lapeyre
Recipients alter-bug-tracer, remi.lapeyre
Date 2019-05-21.12:40:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558442428.29.0.711729507248.issue36975@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-05-21 12:40:28remi.lapeyresetrecipients: + remi.lapeyre, alter-bug-tracer
2019-05-21 12:40:28remi.lapeyresetmessageid: <1558442428.29.0.711729507248.issue36975@roundup.psfhosted.org>
2019-05-21 12:40:28remi.lapeyrelinkissue36975 messages
2019-05-21 12:40:28remi.lapeyrecreate