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.

作者 skrah
收信人 mark.dickinson, meador.inge, skrah
日期 2011-09-16.16:56:04
SpamBayes Score 0.00063011463
Marked as misclassified
Message-id <20110916165304.GA19605@sleipnir.bytereef.org>
In-reply-to <CAK1QooqQuM8CnW++zTjQmGYxFR4Oe2qWAA285rC__oOP-F2YDw@mail.gmail.com>
内容
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:06skrah修改recipients: + skrah, mark.dickinson, meador.inge
2011-09-16 16:56:05skrah链接issue12974 messages
2011-09-16 16:56:05skrah创建