On Nov 15, 8:55 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > Does anyone know what the state of progress with interfaces for python > (last I can see ishttp://www.python.org/dev/peps/pep-0245/) > > I would argue that interfaces/(similar feature) are necessary in any > modern language because they provide a way of separating the > specification from the implementation of a module. > > I also had a new idea - when specifying the functionality of a module, > it would be nice to combine examples of valid behaviour / some sort of > testing. > > It might therefore be possible to combine unit testing with > interfaces. > > What do you all think? > > Peter > (new to python so be nice :)
Status: Rejected If you really want an "interface", make a class with methods that raise NotImplementedError. -- http://mail.python.org/mailman/listinfo/python-list