[Zope-dev] RFC: Python/Zope Interfaces
Jim Fulton
jim@digicool.com
Tue, 28 Nov 2000 09:58:15 -0500
Michel Pelletier wrote:
>
> Lalo Martins wrote:
> >
> > On Fri, Nov 24, 2000 at 08:11:48AM -0800, Michel Pelletier wrote:
> > > Python Interface Proposal
> > >
> > > I have been working on a proposal for enhancing the existing interface
> > > documentation in Zope. The Wiki for this project can be found here:
> >
> > As far as what's written on the proposal is concerned, I like it.
> >
> > Technically, I have one objection to the interface
> > documentation system:
> >
> > Why must I create a new "dummy" Python file? Why can't the
> > system extract the data from the Python source itself?
>
> You can, of course, because you can just pass the Interface costructor a
> class.
This is, in my strongly-held opinion, a bad idea. Most classes
implement multiple interfaces, and trying to suck interfaces out of
a class definition will tend to generate sloppy interfacesl.
I added a comment on this to your Wiki page. :)
Jim
--
Jim Fulton mailto:jim@digicool.com Python Powered!
Technical Director (888) 344-4332 http://www.python.org
Digital Creations http://www.digicool.com http://www.zope.org