Message159878
| 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: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 |
|