Skip to content

Comment on Thoughts on Python 3parent

Comments

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.