Am I missing something with Python not having interfaces?
Arnaud Delobelle
arnodel at googlemail.com
Tue May 6 11:29:21 EDT 2008
jmDesktop <needin4mation at gmail.com> writes:
> Studying OOP and noticed that Python does not have Interfaces. Is
> that correct? 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.
You're not missing anything. An Interface is the Poor Man's Multiple
Inheritance. But in truth, even without multiple inheritance, Python
wouldn't need java-like interfaces.
--
Arnaud
More information about the Python-list
mailing list