doctest and decorators

Daniel Larsson daniel.j.larsson at gmail.com
Tue Sep 4 17:52:37 EDT 2007


On 9/4/07, Ferenczi Viktor <python at cx.hu> wrote:
>
> > @functools.wraps
>
> Correctly:
>
> @functools.wraps(f)
>
> Pass the function to be wrapped by the decorator to the wraps function.


Ooops, right. That doesn't change the fact that decorated functions get
hidden from doctest though.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070904/bdf704c2/attachment.html>


More information about the Python-list mailing list