What are the cons of returning an Exception instance instead of raising it in Python? -
I'm working with Python-couchdb and desktopcouch, I'm doing a db.update The function is wrapped with Coachbab. Function for any person who is not familiar with Python-couchdb is following: def update (self, document, ** option): "" "Make a large update or submit the document using an HTTP request. & Gt; Server = server ('http: // localhost: 5984 /') >> = Server.create ('python-test')> db.update for doctor ([... document (type = 'person', name = 'john do'), ... document ( Type = 'person', name = 'Mary Jane'), .. document (type = 'city', name = 'gotham city') ...]: ... print reprint (doctor) #doctest: +ELLIPSIS ( True, '...', '...') (True, '...', '...') (True, '...', '...')> gt; & Gt; Dell server ['Python-test'] The return value method of this' is a tubulated list for each element in the sequence of documents. The ...