Python Programming Portal
Python Programming Portal
J2EE curve
Add Site Feed
There is a real need of Interfaces : Guido van Rossum PDF Print E-mail
Written by Content Team   
Thursday, 11 August 2005
Guido van Rossum, the creator of Python writes about Interfaces and Abstract Base Classes.
Here are some key points written by Guido :
  •   Abstract Base Classes don't require more syntax.
  •   Zope and Twisted can't live without interfaces, and they have created their own implementation.
  •   The interfaces and type checking are interconnected.
  •   Interfaces make much more sense if you can also declare the argument types of the methods.
  •   Phillip Eby's proposal of  an interface-free alternative is too complex to be adopted as standard Python mechanism.
  •   Ping suggests that there is a need to specify some semantics in interfaces.
  •   Python has a strong tradition that subclasses may redefine methods with a different signature.
  •   Its not decided that Python 3.0 will have interfaces,  will look at some of the standard interfaces the language would provide for various common protocols like sequence, mapping and file.
  •   The File Interface : they don't require genericity to fully specify the interface.
  •   The Sequence Interface : they are both useful and easy to implement, even if there are some thorny issues left.

Reference:
>> Interfaces or Abstract Base Classes?

Comments

You must javascript enabled to use this form

You are not authorized to leave comments. Please login first.

Add Python Site Feed
Latest
Popular
Go to top of page  Home | Content | Resources | Contact Us | Blogs |

Copyright 2004 Rightrix Solutions. All rights reserved. All product names are trademarks of their respective companies.
Views expressed at PythonThreads.com reflect the views of the authors alone, and do not necessarily reflect those of PythonThreads.com.

Terms of Use          Privacy Policy
PythonThreads.com - Python Programming Language Portal