I\'m making a shopping cart app in Google App Engine. I have many classes that derive from a base handler:
class BaseHandler(webapp.RequestHandler):
def
Python matches methods for overloading based on name only. Which means that
class Base:
def method(self, param2):
print "cheeses"
class NotBase(Base):
def method(self):
print "dill"
obj = NotBase();
obj.method()
will output dill( while obj.method("stuff") will fail ).
However, in your case this isn't the desirable behavior. If you overload the body
method with fewer parameters than required by the invocation in the base get
method, invoking the get
method on such classes will result in an error.