Oct-14-2017, 01:14 AM
Not that i am aware of
>>> def func(*arg): ... print(arg) ... >>> func() () >>> func('test') ('test',) >>> func('test', 2) ('test', 2)but i guess if you want to restrict more than 2 arguments you can just assert the length of arg to 2 or less
Recommended Tutorials: