В C# я бы сделал что-то вроде:
Код: Выделить всё
void myfunction (int first, string second)
{
// Some code
}
void myfunction (int first, string second, float third)
{
// Some different code
}
Подробнее здесь: https://stackoverflow.com/questions/711 ... -in-python