1 | initial version |
I am not sure to understand your question, but does the following inspire you ?
sage: def fun( a, b, c=None):
....: print(a,b)
sage: fun(2,3)
(2, 3)
sage: fun(2,3,4)
(2, 3)
or even
sage: def fun( a, b, *args):
....: print(a,b)
sage: fun(2,3)
(2, 3)
sage: fun(2,3,4)
(2, 3)
sage: fun(2,3,4,5)
(2, 3)