Emmanuel Arias <eam...@yaerobi.com> added the comment:

Hi @taleinat,

Seems tha the wrapped func already has the __doc__ (in this case) copied.

following your example:

>>> double
<test.Deco object at 0x7fe8d1fd5b20>
>>> double.__doc__
'A function'

so help(double) will print correctly the double doc.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue29940>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to