Am I missing something with Python not having interfaces?
Diez B. Roggisch
deets at nospam.web.de
Tue May 6 10:07:39 EDT 2008
jmDesktop wrote:
> Studying OOP and noticed that Python does not have Interfaces. Is
> that correct?
Yes.
> Is my schooling for nought on these OOP concepts if I
> use Python. Am I losing something if I don't use the "typical" oop
> constructs found in other languages (Java, C# come to mind.) I'm
> afraid that if I never use them I'll lose them and when I need them
> for something beside Python, I'll be lost. Thank you.
No. There has been a discussion of interfaces and their value/reason for
existance recently:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/95e99a5dae495209/647693537ef98068?lnk=raot
Besides, at least for java (didn't do much in C#) you sure will miss on
generators, metaclasses, multiple inheritance, higher-order functions and
such if going there from python. Which I personally consider a much greater
loss and annoyance than a crutch needed in statically typed languages.
Diez
More information about the Python-list
mailing list