Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: