> On 31 Mar 2021, at 13:34, Victor Stinner <vstin...@python.org> wrote:
> 
> def func():
>    print("my func")


This would work for the example given of a func with no args.
But cannot check it called with the right number.

def func(*args):
   print("my func")

A signature like this would be a hard nut to crack.

def func(fixed, *args):
        print("my func", fixed, args)

Barry

_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/RKAIEYL36YR2JQLPIHLQYJENIWZPAVWE/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to