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.

作者 brett.cannon
收信人 barry, brett.cannon, eric.smith, jaraco
日期 2012-05-03.21:52:38
SpamBayes Score -1.0
Marked as misclassified
Message-id <1336081958.94.0.920366838256.issue14715@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2012-05-03 21:52:38brett.cannon修改recipients: + brett.cannon, barry, jaraco, eric.smith
2012-05-03 21:52:38brett.cannon修改messageid: <1336081958.94.0.920366838256.issue14715@psf.upfronthosting.co.za>
2012-05-03 21:52:38brett.cannon链接issue14715 messages
2012-05-03 21:52:38brett.cannon创建