• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using Interfaces

In objects, interfaces are used as follows:

01 from zope.interface import implements
02 from interfaces import IExample
03
04 class SimpleExample:
05     implements(IExample)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint