KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
For example, I have a class BaseHandler(object): def prepare(self): self.prepped = 1 I do not want everyone that subclasses BaseHandler and also wants to implement prepare to have to remember to call super(SubBaseHandler, self).prepare() Is there a way to ensure the superclass method is run even if the subclass also implements prepare?
Tags (comma-separated)
Save Edits
Cancel