On Sunday 04 April 2004 15:23, Paul Winkler wrote:
> > Yeah, I guess the best way would be to do interfaces. Then you can use
> > parts of the Zope 3 API documentation tool (actually all of the Interface
> > and Class doc module)  and generate docs.
>
> I note in lib/python/Interfaces/IInterface.py, there are several
> ways to declare interfaces currently. Is one of these preferred?
>
> class FooBar:
>     implements(IFoo, IBar)

This is the only way used in Zope 3.

>
> class FooBar:
>     __implements__ = (IFoo, IBar)

This is mainly for backward-compatibility, I understand.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training

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

Reply via email to