Re: functools.wraps and help()

2010-06-02 Thread Michele Simionato
On Jun 2, 2:20 pm, Ulrich Eckhardt wrote: > Hi! > > When I use help() on a function, it displays the arguments of the function, > along with the docstring. However, when wrapping the function using > functools.wraps it only displays the arguments that the (internal) wrapper > function takes, which

functools.wraps and help()

2010-06-02 Thread Ulrich Eckhardt
Hi! When I use help() on a function, it displays the arguments of the function, along with the docstring. However, when wrapping the function using functools.wraps it only displays the arguments that the (internal) wrapper function takes, which is typically "*args, **kwargs", which isn't very usef