Interfaces in python

Yermat loic at yermat.net1.nerim.net
Thu May 6 14:15:00 EDT 2004


Thomas Weholt a écrit :
> Hi,
> 
> I'm looking for a good clean explanation on how to implement interfaces in
> python. My project uses Twisted so I could use their
> interface-implementation, but I'm wondering if this is a portable solution
> or if it needs Twisted. What I mean is can I use my interface-dependant code
> if I decide to use something else than Twisted later?
> 
> I've searched in google, and found stuff like
> http://c2.com/cgi/wiki?InterfacesInPython and read the part about
> interfaces, components and adapters in the Twisted-docs, but this is
> allready what I'm doing now. Stuff like :
>[...]

Look at archive. There was already lot's of discussion about interfaces...
http://groups.google.fr/groups?q=interfaces+group:comp.lang.python

In fact, in python, you don't need interfaces !
But you can simulate if you really want them...

-- 
Yermat




More information about the Python-list mailing list