Author jackdied
Recipients jackdied, michael.foord, ncoghlan
Date 2010-07-10.02:23:40
SpamBayes Score 0.00247591
Marked as misclassified No
Message-id <1278728630.11.0.677496280298.issue9110@psf.upfronthosting.co.za>
In-reply-to
Content
I like it, but I think it would help to give it the same interface as contextlib.contextmanager (the single function, single yield).  Like your mock library 'patch' both function decorators and context managers have an interface that reads like "do this before the real work," "do the real work," and then "do this after the real work" pattern.  The fact that the examples and test cases all require an almost empty class feels heavy to me.
History
Date User Action Args
2010-07-10 02:23:50jackdiedsetrecipients: + jackdied, ncoghlan, michael.foord
2010-07-10 02:23:50jackdiedsetmessageid: <1278728630.11.0.677496280298.issue9110@psf.upfronthosting.co.za>
2010-07-10 02:23:41jackdiedlinkissue9110 messages
2010-07-10 02:23:40jackdiedcreate