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.

Author jyasskin
Recipients gvanrossum, jyasskin, rhettinger
Date 2008-02-03.18:12:40
SpamBayes Score 0.014893811
Marked as misclassified No
Message-id <5d44f72f0802031012h16edeb95ne6740d6dbbbac1f6@mail.gmail.com>
In-reply-to <1202025431.87.0.450263532237.issue2002@psf.upfronthosting.co.za>
Content
> There is also part of this patch that touches classobject.c but I'm not
> yet sure what the visible effect of that change would be or what the
> change was hoping to accomplish.

All classic classes take the (m && m->nb_int) branch, so without the
change to classobject.c, they'd never hit the fallback to __trunc__.
The unfortunate side-effect is that when you call int() or long() on a
classic class without the right methods, you get an AttributeError
complaining about __trunc__ instead of about __int__. Since long()
already mistakenly complained about __int__, I didn't consider this a
showstopper, but it should be possible to fix if you want.
History
Date User Action Args
2008-02-03 18:12:43jyasskinsetspambayes_score: 0.0148938 -> 0.014893811
recipients: + jyasskin, gvanrossum, rhettinger
2008-02-03 18:12:42jyasskinlinkissue2002 messages
2008-02-03 18:12:41jyasskincreate