range([start,] stop[, step]) -> list of integers
I'm just guessing but the definition would have to be something like this, although the actual code may be in C/C++
def range_test(*args_in):
if len(args_in) == 1:
stop=int(args_in[0])
start=0
step=1
print "one arg found", start, stop, step
else:
## compare for length==2 and then 3 (error if < 1 or > 3)
print len(args_in), "args found -->", args_in
range_test(3)
range_test(1,3)
range_test(2,10,2)