"Amit Sethi" <amit.pureene...@gmail.com> wrote
class MyInterface(object):
  doSomething(line):
       raise NotImplementedError
  doSomethingElse(line):
      raise NotImplementedError

I think that is exactly the kind of structure i was looking for ...

As a matter of interest, why? What do you anticipate using this for? I have found a few cases where abstract interfaces are useful but they are very few and far between.

--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to