Interfaces (a la PEP 245 and Zope)

Raymond Hettinger vze4rx4y at verizon.net
Sat Aug 2 00:48:49 EDT 2003


> Now of course, I could pick through the Interface module and
> write a check that resembles the verification that it does, but it seems to
> me that there ought to be a simpler solution (and if I were going to
> do that, I should probably really be improving the Interface module
> rather than putting the code in my package).
>
> So, am I missing some existing way to do this?

I posted a simple interface checker in the Python cookbook.
Perhaps, it will meet your needs:

   http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/204349



Raymond Hettinger






More information about the Python-list mailing list