消息 [144138]
Meador Inge <report@bugs.python.org> wrote:
> The behavior around '__int__' in previous versions seems somewhat accidental.
I think struct followed the functions in longobject.c, which is not
really consistent with respect to duck typing. See also #12965 or
http://bugs.python.org/issue1172711#msg48086.
But I think that the decision to accept __index__() for both signed
and unsigned integer formats is good for consistency.
For 'P' I'm not sure, but course it might be used in the wild by now. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2011-09-16 16:56:06 | skrah | 修改 | recipients:
+ skrah, mark.dickinson, meador.inge |
| 2011-09-16 16:56:05 | skrah | 链接 | issue12974 messages |
| 2011-09-16 16:56:05 | skrah | 创建 | |
|