Purpose of Zope Interfaces?
Posted
by Nikwin
on Stack Overflow
See other posts from Stack Overflow
or by Nikwin
Published on 2010-03-26T04:45:26Z
Indexed on
2010/03/26
4:53 UTC
Read the original article
Hit count: 500
I have started using Zope interfaces in my code, and as of now, they are really only documentation. I use them to specify what attributes the class should possess, explicitly implement them in the appropriate classes and explicitly check for them where I expect one. This is fine, but I would like them to do more if possible, such as actually verify that the class has implemented the interface, instead of just verifying that I have said that the class implements the interface. I have read the zope wiki a couple of times, but still cannot see much more use for interfaces than what I am currently doing. So, my question is what else can you use these interfaces for, and how do you use them for more.
© Stack Overflow or respective owner