Recently I noticed that range()
does not accept keyword arguments, and I thought this was a little bit strange: Even if we define no defaults we can still do
def f(a, b):
return a + b
f(a=3, b=5)
Is it therefore somehow possible to disable the use of keyword arguments in a function written in Python? Or is this just reserved for built in functions?