On Feb 15, 6:31 am, Steven D'Aprano wrote:
> Never mind, it was a PEBCAK error. I failed to notice that applying a
> decorator to a function shadows the functions docstring.
>
> Normally I would use functools.wraps, but I am currently limping along on a
> Python 2.4 installation here, which doesn'
Steven D'Aprano wrote:
> I've just spotted a bug in doctest that it fails to see tests inside
> decorated functions. It's been reported before:
>
> http://bugs.python.org/issue1108
>
> but the patch submitted doesn't work for me.
Never mind, it was a PEBCAK error. I failed to notice that applyi
I've just spotted a bug in doctest that it fails to see tests inside
decorated functions. It's been reported before:
http://bugs.python.org/issue1108
but the patch submitted doesn't work for me. I have a test script on the
page demonstrating the problem. Can anyone give me some clues as to a
work