[Twisted-Python] If the errbacks of a canceled Deferred are called with error other than CancelledError, is this acceptable?

Glyph glyph at twistedmatrix.com
Tue Jun 18 15:24:40 MDT 2013


On Jun 18, 2013, at 2:13 PM, Itamar Turner-Trauring <itamar at itamarst.org> wrote:

> On 06/18/2013 02:22 PM, Glyph wrote:
>> Making an API that previously documented raising (or failing) exception types A, B, and C raise (or fail with) D is not necessarily a compatible change.  Making it raise (or fail with) A' (a subclass of A) is, though.
>> 
> The API for pop3client does *not* document the expected exceptions, so backwards compatibility isn't really an issue here.

Hrm.  I would say that if you don't document exceptions, then you just have to support whatever your behavior was before :).

http://twistedmatrix.com/trac/wiki/CompatibilityPolicy does not explore this issue, though.

-glyph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20130618/207606ce/attachment.html>


More information about the Twisted-Python mailing list