[Twisted-Python] All use cases of getComponent
Itamar Shtull-Trauring
itamar at itamarst.org
Tue Apr 20 08:35:49 MDT 2004
On Mon, 2004-04-19 at 09:36, Phillip J. Eby wrote:
> Okay, well __conform__ is for an object to implement adaptation. That is,
> if object 'x' has a __conform__ attribute, then 'IFoo(x)' will first call
> 'x.__conform__(IFoo)', and if a non-None object is returned, that's what
> will be used as the result of 'IFoo(x)'.
>
> Is that anything at all like what getComponent() does?
The semantics are pretty similar, yes.
--
Itamar Shtull-Trauring http://itamarst.org
Looking for a job -- http://itamarst.org/resume.html
More information about the Twisted-Python
mailing list