Author brett.cannon
Recipients barry, brett.cannon, eric.smith, jaraco
Date 2012-05-03.21:52:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336081958.94.0.920366838256.issue14715@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, it could do all of this. One possibility that I was thinking of, was this could be a setUp()/tearDown() thing as well instead of a context manager. Another option is a simple decorator. Either way it might be easier to have it just save state and then in the body of the code set everything as desired instead of in the context manager's init.
History
Date User Action Args
2012-05-03 21:52:38brett.cannonsetrecipients: + brett.cannon, barry, jaraco, eric.smith
2012-05-03 21:52:38brett.cannonsetmessageid: <1336081958.94.0.920366838256.issue14715@psf.upfronthosting.co.za>
2012-05-03 21:52:38brett.cannonlinkissue14715 messages
2012-05-03 21:52:38brett.cannoncreate