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 casevh
Recipients belopolsky, casevh, pitrou, rhettinger, skrah
Date 2014-09-20.17:13:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CANerV6=qXN4bJTLMfwZgLu6bKGr6UTHjn=LZE2V8qxhO2ekq1g@mail.gmail.com>
In-reply-to <1411231492.71.0.0479328543707.issue22444@psf.upfronthosting.co.za>
Content
>> What should Decimal('1e123456')//1 return?
>
> I think Decimal case should be considered separately.  Note that unlike float, they are not part of the numerical tower, so PEP 3141 arguments don't apply:
>
>>>> isinstance(1.0, numbers.Real)
> True
>>>> isinstance(decimal.Decimal(1), numbers.Real)
> False
>
I maintain gmpy2 and I've had requests to support the numeric tower.
gmpy2 has integral, rational, real, and complex types so I should be
able to.
History
Date User Action Args
2014-09-20 17:13:22casevhsetrecipients: + casevh, rhettinger, belopolsky, pitrou, skrah
2014-09-20 17:13:22casevhlinkissue22444 messages
2014-09-20 17:13:22casevhcreate