@djangoproject · Post #266 · 02/21/2017, 12:29 PM
http://stackoverflow.com/questions/6434482/python-function-overloading I know that Python does not support method #overloading, but I've run into a problem that I can't seem to solve in a nice Pythonic way. I am making a #game where a character needs to shoot a variety of bullets, but how do I write different functions for creating these bullets? For example suppose I have a function that creates a bullet travelling from point A to B with a given speed.
Hashtags