New to Python: Features

Aaron Bingham bingham at cenix-bioscience.com
Tue Oct 5 03:02:20 EDT 2004


Richard Blackwood wrote:

> Hi, I'm new to Python and I'd like to know if Python has the following 
> support: *please answer to each individually, thanks* 

...

>
> 31. Concepts of Protocols (whereby one may organize related methods 
> into groups and check whether a particular object implements the 
> methods within this protocol), or Interfaces similar to those in Java 
> whereby classes or objects which implement the interface (sign the 
> contract) must implement the methods and attributes as specified in 
> the interface, and/or programming by contract such as in Eiffel (see: 
> http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=595) 

PyProtocols (http://peak.telecommunity.com/PyProtocols.html) might do 
what you want.

Aaron





More information about the Python-list mailing list