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.

作者 serhiy.storchaka
收信人 Arfrever, alex, barry, docs@python, eric.snow, ethan.furman, mark.dickinson, ncoghlan, serhiy.storchaka, vstinner
日期 2013-12-10.21:53:32
SpamBayes Score -1.0
Marked as misclassified
Message-id <1386712412.3.0.864751342793.issue17576@psf.upfronthosting.co.za>
In-reply-to
内容
What about PyLong_AsSsize_t(), PyLong_AsUnsignedLong(), and PyLong_AsSize_t()? They are ignore __int__().

PyLong_AsVoidPtr() calls PyLong_AsLong(), PyLong_AsUnsignedLong(), PyLong_AsLongLong(), or PyLong_AsUnsignedLongLong() (depending on pointer's size and it's sign) and therefore can call or not call __int__, can raise or not raise TypeError on non-int subclasses with defined __int__().
历史
日期 用户 动作 参数
2013-12-10 21:53:32serhiy.storchaka修改recipients: + serhiy.storchaka, barry, mark.dickinson, ncoghlan, vstinner, Arfrever, alex, docs@python, ethan.furman, eric.snow
2013-12-10 21:53:32serhiy.storchaka修改messageid: <1386712412.3.0.864751342793.issue17576@psf.upfronthosting.co.za>
2013-12-10 21:53:32serhiy.storchaka链接issue17576 messages
2013-12-10 21:53:32serhiy.storchaka创建