|
|
|
|
|
by progval
2308 days ago
|
|
> which is the only(?) function in the language that has an optional parameter before a required one. The documentation shows it as being overloaded, rather than having default arguments: range(stop) -> range object
range(start, stop[, step]) -> range object
There's iter which is overloaded: iter(iterable) -> iterator
iter(callable, sentinel) -> iterator
|
|
Python doesn't support overloading, and it doesn't support optional arguments before required ones, so the actual implementation in Python is a bit messy - something like: