This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients magnusc, steven.daprano
Date 2015-05-06.12:40:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430916011.5.0.982428776446.issue24134@psf.upfronthosting.co.za>
In-reply-to
Content
I don't think this is a bug. I think it is just a case that you have to be careful when calling functions, you actually do call the function. And that it returns what you think it does.

I think the critical point is this:

"It turned our that I forgot to return the decorator and instead got the default None. But my tests didn't warn me about that."

The solution to that is to always have a test that your decorator actually returns a function. That's what I do.
History
Date User Action Args
2015-05-06 12:40:11steven.dapranosetrecipients: + steven.daprano, magnusc
2015-05-06 12:40:11steven.dapranosetmessageid: <1430916011.5.0.982428776446.issue24134@psf.upfronthosting.co.za>
2015-05-06 12:40:11steven.dapranolinkissue24134 messages
2015-05-06 12:40:11steven.dapranocreate