overload methods are complicated in python. However, there may be use of passing a dict, list, or primitive variables.
I tried something for my use cases, this can help people understand to overload methods.
Let's look at an example in one of the stackoverflow threads:
class overload method with calling methods from another class.
def add_bullet(sprite=None, start=None, headto=None, spead=None, acceleration=None):
pass arguments from a remote class:
add_bullet(sprite = 'test', start=Yes,headto={'lat':10.6666,'long':10.6666},accelaration=10.6}
OR add_bullet(sprite = 'test', start=Yes,headto={'lat':10.6666,'long':10.6666},speed=['10','20,'30']}
So, the processing is performed for a list, a dictionary, or primitive variables from a method overload.
try for your codes
shashankS Dec 30 '16 at 6:44 2016-12-30 06:44
source share