jeremito a écrit :
> I am writing a class that is intended to be subclassed.  What is the
> proper way to indicate that a sub class must override a method?

class Base(object):
   def method_to_override(self, *args, **kw):
     raise NotImplementedError("You need to override this method")


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to