Dear All,<div><br></div><div>I have an idea that the Ellipsis object could be used in function calls. The "..." syntax should automagically turn into an Ellipsis positional argument.</div><div><br></div><div>def f(*args):</div>

<div>  ext_args = []</div><div>  for i, a in enumerate(args):</div><div>    if a is Ellipsis:</div><div>      ext_args.extend([x for x in range(args[i-1]-1, args[i+1])])</div><div>    else:</div><div>      ext_args.append(a)</div>

<div>  return ext_args</div><div><br></div><div>Calling it for the above example specifically:</div><div><br></div><div>>>>f(34, ..., 43)</div><div>[34, 35, 36, 37, 38, 39, 40, 41, 42, 43]</div><div><br></div><div>

That might be useless or someone might say it is confusing, but I think it would be relatively easy to implement and a nice little syntactic "sugar".</div><div><br></div><div>Best regards,</div><div><br></div><div>

Szabolcs Blaga</div>