➜

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.

作者 jyasskin
收信人 jyasskin, mato2000, werneck, zanella
日期 2008-06-30.04:10:27
SpamBayes Score 0.0011394422
Marked as misclassified 否
Message-id <1214799029.66.0.387501779067.issue2325@psf.upfronthosting.co.za>
In-reply-to
内容
I don't think so. It wouldn't be a bug if I wrote:

>>> class Meta(type):
...   def __instancecheck__(self, other):
...     return True
>>> isinstance(3, Meta)
... False

but it is a bug that the isinstance call raises an exception. If recent
builds no longer raise an exception, then the bug should be closed.

You guys also seem to have missed that the examples in PEP 3119 in fact
define __instancecheck__ as a normal method on a metaclass (which makes
it a classmethod on classes derived from that metaclass) instead of as a
classmethod on a metaclass.
历史
日期 用户 动作 参数
2008-06-30 04:10:29jyasskin修改spambayes_score: 0.00113944 -> 0.0011394422
recipients: + jyasskin, zanella, werneck, mato2000
2008-06-30 04:10:29jyasskin修改spambayes_score: 0.00113944 -> 0.00113944
messageid: <1214799029.66.0.387501779067.issue2325@psf.upfronthosting.co.za>
2008-06-30 04:10:28jyasskin链接issue2325 messages
2008-06-30 04:10:27jyasskin创建