> >>> class First:
>
>         def __init__(self, *args, **kwargs):
>                 pass
>
> >>> class Second:
>
>         def __init__(self, somearg, *args, **kwargs):
>                 self.somearg = somearg
>
> How can I test that First class takes 1 required argument and Second
> class takes no required arguments?


Sorry, I have made a mistake. Of course, Second class takes 1 required
argument, not First.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to