Message159878
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. |
|
Date |
User |
Action |
Args |
2012-05-03 21:52:38 | brett.cannon | set | recipients:
+ brett.cannon, barry, jaraco, eric.smith |
2012-05-03 21:52:38 | brett.cannon | set | messageid: <1336081958.94.0.920366838256.issue14715@psf.upfronthosting.co.za> |
2012-05-03 21:52:38 | brett.cannon | link | issue14715 messages |
2012-05-03 21:52:38 | brett.cannon | create | |
|