Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, jyasskin, mato2000, werneck, zanella
Date 2008-06-30.12:44:59
SpamBayes Score 5.82955e-05
Marked as misclassified No
Message-id <1214829961.39.0.179641745007.issue2325@psf.upfronthosting.co.za>
In-reply-to
Content
I think the best is to ignore __instancecheck__ when
"cls.__instancecheck__" is returned as an unbound method. In this case,
we try "type(cls).__instancecheck__" instead.

Here is a patch along this idea.
I had to disable a test named "Evil", because in this case isinstance()
simply falls back to the original algorithm.

I don't know if this is applicable to 3.0: unbound methods don't exist
any more.
History
Date User Action Args
2008-06-30 12:46:01amaury.forgeotdarcsetspambayes_score: 5.82955e-05 -> 5.82955e-05
recipients: + amaury.forgeotdarc, jyasskin, zanella, werneck, mato2000
2008-06-30 12:46:01amaury.forgeotdarcsetspambayes_score: 5.82955e-05 -> 5.82955e-05
messageid: <1214829961.39.0.179641745007.issue2325@psf.upfronthosting.co.za>
2008-06-30 12:45:01amaury.forgeotdarclinkissue2325 messages
2008-06-30 12:45:01amaury.forgeotdarccreate