Re: Maintaining signature in help(decorated function)

2008-12-10 Thread jelsas
Thanks! This is exactly what I needed. -- http://mail.python.org/mailman/listinfo/python-list

Maintaining signature in help(decorated function)

2008-12-10 Thread jelsas
Hi -- I can't seem to maintain the function signature when applying a decorator. I'm using functools.wraps. Example: >>> def mydecorator(fn): ... from functools import wraps ... # simple decorator ... @wraps(fn) ... def wrapped(*args, **kwargs): ... print 'i\'m wrappe