Comment on Thoughts on Python 3Comments−perfunctory14y"The multimethod based design of the language"What is he talking about?−mr190014yhttp://www.artima.com/weblogs/viewpost.jsp?thread=101605Not part of the language as far as I can see, more a way how you do this in python−sirclueless14yIn a comment here on HN. the author clarified. What he means is that a whole bunch of builtin functions operate by calling methods on the objects they are passed.int(n) --> n.__int__()format(x, spec) --> x.__format__(spec)−perfunctory14yIt's not multimethods. It's just calling methods on the objects you are passed.
Comments
"The multimethod based design of the language"
What is he talking about?
http://www.artima.com/weblogs/viewpost.jsp?thread=101605
Not part of the language as far as I can see, more a way how you do this in python
In a comment here on HN. the author clarified. What he means is that a whole bunch of builtin functions operate by calling methods on the objects they are passed.
int(n) --> n.__int__()
format(x, spec) --> x.__format__(spec)
It's not multimethods. It's just calling methods on the objects you are passed.