It is allowed to d.addCallbacks(f) though there's no benefit to this over d.addCallback(f) that I know of. However, since it's allowed, surprise, someone does it.
When the Deferredd is replaced with a DeferredContext, though, this fails because DeferredContext.addCallbacks requires an errback.
It is allowed to
d.addCallbacks(f)
though there's no benefit to this overd.addCallback(f)
that I know of. However, since it's allowed, surprise, someone does it.When the
Deferred
d
is replaced with aDeferredContext
, though, this fails becauseDeferredContext.addCallbacks
requires an errback.