On Mon, Feb 26, 2018 at 1:09 PM,  <marco.naw...@colosso.nl> wrote:
>     def foo(self, *args, **kwargs):
>         assert len(args) == 0

Better:

def foo(self, **kwargs):

> So, use the inspect module to detect the valid arguments
> from the class initializer. Then use **kwargs in every
> class method. It would be nice if the full method signature
> can be kept, but I have not yet figured out if this is
> possible.

https://pypi.python.org/pypi/decorator/4.2.1
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to