On Tue, Jan 29, 2002 at 07:47:46PM +0000, Florent Guillaume wrote:
> > > When I define an Interface, are the methods of the interface supposed to
> > > have "self" as the first argument?
> > 
> > No.
> 
> But this does preclude automatic validation of the "contract" using
> python inheritance from the Interface, doesn't it ? Or will there be
> another way ?

No, the validation methods take into account that class members of an
implementation will have a self-referential first argument. Detecting if an
implementation is a class is trivial.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Zope Corporation   http://www.zope.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to