The python example is not an issue; you're going from string to a longer string, not to an integer.
But that's not really the point, crdoconnor seems to think that languages should throw an error in cases like this, not just keep the type of the first argument.