[Twisted-web] web2: reverse dns lookup in twisted reactor thread

Andrew Bennetts andrew-twisted at puzzling.org
Tue Jul 11 19:18:34 CDT 2006


On Tue, Jul 11, 2006 at 05:14:58PM -0400, glyph at divmod.com wrote:
[...]
> 
> - "ISSLTransport(x, None) is not None" seems to have evolved into an idiom, 
> but I'm pretty sure that this is just a reflection of the bad, old 
> interfaces system.  Anybody else know if there's a reason for this rather 
> than a providedBy check?

The difference I see is that a providedBy check won't lookup an adapter, so
"ISSLTransport.providedBy(x)" doesn't mean the same thing as "ISSLTransport(x,
None) is not None".  It might be what was intended here, of course.

-Andrew.




More information about the Twisted-web mailing list