[Twisted-Python] Interface.adaptWith and Interface.__adapt__

Clark C. Evans cce at clarkevans.com
Sat Jun 7 12:46:35 MDT 2003


On Thu, Jun 05, 2003 at 01:59:44AM -0400, Glyph Lefkowitz wrote:
| As I understand it, PEP 246 cannot be implemented without raising 
| exceptions in __adapt__. 

PEP 246 does not require exceptions in __adapt__, it does require
that the caller of adapt catch TypeError.  Perhaps this isn't
clearly documented, but is definately part of the reference
implementation.

Best,

Clark





More information about the Twisted-Python mailing list