[Tutor] intefaces in python

Jan Ulrich Hasecke juhasecke at googlemail.com
Tue Jun 30 10:37:42 CEST 2009


Am 28.06.2009 um 17:00 schrieb Amit Sethi:

> Hi , I don't suppose python has a concept of interfaces. But can  
> somebody tell me if their is a way i can  implement something like a  
> java interface in python.

The Web Framework Zope has a notion of interfaces.
http://pypi.python.org/pypi/zope.interface/3.5.1

There are some quite interesting things you can make with interfaces.  
Eg. the Component Architecture is build on interfaces and adapters.

http://wiki.zope.org/zope3/WhatAreInterfaces

More on this here:
http://docs.zope.org/

juh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3709 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tutor/attachments/20090630/5e8df726/attachment.bin>


More information about the Tutor mailing list