Am I missing something with Python not having interfaces?

J. Clifford Dyer jcd at sdf.lonestar.org
Thu May 8 07:02:52 EDT 2008


On Thu, 2008-05-08 at 09:12 +0200, Daniel Marcel Eichler wrote:
> Am Mittwoch 07 Mai 2008 21:48:56 schrieben Sie:
> 
> > > That's the point. Interfaces garantee that a duck is a duck, an not
> > > only a chicken that quack.
> > Which, in spite of your rhetorical flourish, is the exact opposite of
> > duck typing.  Duck typing means that if you're looking for quacking
> > behavior, and you find a quacking chicken, it's close enough.
> 
> I didn't said that interfaces are a kind of duck-typing. In fact it was 
> the exact opposite.
> 
> > Sometimes you need that kind of rigor, and you can get it as easily
> > as
> 
> And sometimes you need more. So what?
> 

More rigor than Zope's interfaces offer?  That's new information to me.
Perhaps you should stop being argumentative for a moment, and explain
exactly what it is you're looking for and why Zope interfaces don't fit
the bill.






More information about the Python-list mailing list