python interfaces

r.grimm at r.grimm at
Mon Jan 7 08:33:15 CET 2008

On Jan 6, 11:01 am, Fredrik Lundh <fred... at> wrote:
> at wrote:
> > Interfaces are a extremly smart Design Principle in static typed
> > languages like Java and C++.
> that's somewhat questionable in itself, and even more questionable as an
> argument for interfaces in Python.
> I'd recommend anyone who thinks that they cannot program without formal
> interfaces to try using Python as Python for a while, before they try
> using it as something else.  you might be surprised over how easy it is
> to build robust stuff without having to add lots of extra constraints to
> your code.
> </F>
I argued, that Interface and multiple  inheritance are  different
things and
especially, that Interfaces are very useful in staticially typed
In such languages like Java  and C++ you need a formalismen to guide
the user.
You may call it extension point, pure  virtual function or abstract

Sorry for the  misunderstanding, I argued for Interface in heavyweight
typed languages and nor for lightweight dynamic typed  languages like
They aren't pointless and a hack.

Greetings Rainer

More information about the Python-list mailing list