ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
Interfaces != Multiple Inheritance [was Re: python development practices?]
by Richard Jones other posts by this author
Oct 31 2001 1:29AM messages near this date
Re: python development practices? | PythonWin 2.1 saving bugg???
On Wednesday 31 October 2001 12:11, Paul Rubin wrote:
>  Peter Wang <pzw1@[...].edu> writes:
>  > while i feel that Python makes me far more productive as a programmer
>  > for all the projects on which i've worked, i'm inclined to agree that
>  > the lack of data hiding coupled with lack of a standard interface
>  > specification would cause problems in a team.
> 
>  If by "interfaces" you mean Java-like interfaces, that's a bogus
>  criticism since Python supports multiple base classes, which let
>  you do the same things and then some.

Java interfaces != multiple inheritance.

They address completely different issues. Mutliple inheritance allows one to 
include functionality from multiple base classes in one step. An interface 
indicates that your class implements a specific set of methods. Interfaces 
don't implement functionality, therefore indicating that your class 
implements multiple interfaces doesn't add any additional functionality.


   Richard

-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
Peter Wang
Peter Hansen
Toby Dickenson
Tim Peters
Steve Holden
Steve Holden
Cliff Wells
Tim Peters
Martijn Faassen

Cliff Wells
Cliff Wells
Martijn Faassen
Martijn Faassen
Paul Rubin
Russell E. Owen
Barry A. Warsaw
Martijn Faassen
Peter Wang
Skip Montanaro
John Roth
David Bolen
Peter Wang
Peter Wang
Skip Montanaro
Chris Tavares
Darren Collins
David Bolen
Paul Rubin
Paul Rubin
Peter Wang
F Basegmez
Richard Jones

Richard Jones

Neal Norwitz
Graham Ashton
Peter Wang
Russell E. Owen
Skip Montanaro
Cliff Wells
Hung Jung Lu
Wade Leftwich
Peter Wang
Peter Wang


Peter Wang

Chris Gonnerman
Paul Rubin
Andrew Dalke
Paul Rubin
Luigi Ballabio
Paul Rubin
Tim Peters
John Roth
Paul Rubin
Richard Jones

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved