Python Equivalent to Java Interfaces?
George Sakkis
gsakkis at rutgers.edu
Sat Apr 9 00:52:50 EDT 2005
"Brian Kazian" wrote:
> I want to insure that all subclasses implement a certain method, but
could
> not find anything that would do this for me. Is there anyway in
Python to
> implement this check? Thanks!
Check out PyProtocols (http://peak.telecommunity.com/PyProtocols.html).
Protocols in a way extend (no pun intended) typical interfaces by
giving more flexibility to independent components to talk to each
other.
George
More information about the Python-list
mailing list