消息 [106292]
> 1) c = Decimal64Context
>
> 2) c = Context(Decimal64)
Rather that complicating the Context constructor, I'd prefer a separate factory function. I was thinking of something like:
def IEEEContext(n):
"""Return the decimal<n> IEEE 754 context. n should be a multiple
of 32."""
...
Again, it's clear with this that you get a new context object (I agree that there are problems with (1) and the mutability of Contexts). |
|
| 日期 |
用户 |
动作 |
参数 |
| 2010-05-22 10:18:15 | mark.dickinson | 修改 | recipients:
+ mark.dickinson, rhettinger, facundobatista, skrah |
| 2010-05-22 10:18:15 | mark.dickinson | 修改 | messageid: <1274523495.24.0.10799095221.issue8540@psf.upfronthosting.co.za> |
| 2010-05-22 10:18:14 | mark.dickinson | 链接 | issue8540 messages |
| 2010-05-22 10:18:14 | mark.dickinson | 创建 | |
|