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 facundobatista, gvanrossum, jyasskin, mark.dickinson
Date 2008-01-08.16:25:54
SpamBayes Score 0.04318008
Marked as misclassified No
Message-id <1199809556.17.0.382046729374.issue1623@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, making Decimal subclass object instead of Real and Inexact makes it
as fast as it used to be. ABCMeta.__instancecheck__ is easy to speed up,
but after fixing it, we're still about 25% behind. So here'a version
that just registers Decimal as a subclass instead of having it inherit.

I removed __le__ and __lt__ too, since, without subclassing
numbers.Real, nothing requires them to exist, and the behavior's the same.
History
Date User Action Args
2008-01-08 16:25:56jyasskinsetspambayes_score: 0.0431801 -> 0.04318008
recipients: + jyasskin, gvanrossum, facundobatista, mark.dickinson
2008-01-08 16:25:56jyasskinsetspambayes_score: 0.0431801 -> 0.0431801
messageid: <1199809556.17.0.382046729374.issue1623@psf.upfronthosting.co.za>
2008-01-08 16:25:54jyasskinlinkissue1623 messages
2008-01-08 16:25:54jyasskincreate