[Zope-dev] Defining Interfaces

Phillip J. Eby pje@telecommunity.com
Tue, 29 Jan 2002 08:40:40 -0500


At 03:17 PM 1/28/02 +0000, Chris Withers wrote:
>Jeffrey P Shell wrote:
> >
> > On 1/27/02 11:25 AM, "Steve Alexander" <steve@cat-box.net> wrote:
> >
> > > Hi folks,
> > >
> > > When I define an Interface, are the methods of the interface supposed to
> > > have "self" as the first argument?
> >
> > No.
>
>Can you expand on this a little?
>
>It doesn't make sense to me to exclude 'self'...

Because when you *call* the methods, you don't pass 'self', it's 
implied.  Since an interface is supposed to document the call signature, it 
actually doesn't make sense for it to include 'self', since it's not part 
of the call signature.  Make sense?