[Reality] c.getComponent(I) vs I(c)

Christopher Armstrong reality@twistedmatrix.com
Tue, 8 Jul 2003 14:11:42 -0400


On Tue, Jul 08, 2003 at 03:06:12PM -0400, Jp Calderone wrote:
>   The current Reality code seems to make a lot of assumptions about the
> (non-None) return value of c.getComponent().  I think the thing to do is
> change most of these uses to the new callable-Interface API, so that
> CannotAdapt is raised by them (which can hopefully be handled properly),
> rather than an AttributeError (which cannot).
> 
> 
>   Patch attached.  Thoughts?

I'm for it.

-- 
 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+     http://twistedmatrix.com/users/radix.twistd/