Hacker News new | ask | show | jobs
by blackandblue 2308 days ago
there is no optional positional in the implementation. range is overloaded in the raw sense of the term as the implementation checks the number of arguments and their types and does the right thing.

it could have been implemented in pure python as well by doing args, *kwargs.

1 comments

Well, however the `range` function is implemented, IMO its API would be better expressed as true overloading - as two functions with the same name.