消息 [149377]
Given the history of API design errors in contextlib (cf. contextlib.nested in general, making contextlib._GeneratorContextManager a subclass of contextlib.ContextDecorator), I've realised Raymond is right in wanting to see this idea more thoroughly vetted before it gets added to the standard library.
Accordingly, I plan to create a 'unittest2' style backport library for contextlib (imaginatively named 'contextlib2') and prototype the concept further there. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2011-12-13 03:43:34 | ncoghlan | 修改 | recipients:
+ ncoghlan, rhettinger, giampaolo.rodola, nikratio, Julian, eric.snow, smarnach |
| 2011-12-13 03:43:34 | ncoghlan | 修改 | messageid: <1323747814.12.0.555511227565.issue13585@psf.upfronthosting.co.za> |
| 2011-12-13 03:43:33 | ncoghlan | 链接 | issue13585 messages |
| 2011-12-13 03:43:33 | ncoghlan | 创建 | |
|