[Python-Dev] Mini-Pep: Simplifying the Integral ABC

Paul Moore p.f.moore at gmail.com
Fri Jun 6 20:36:03 CEST 2008


2008/6/6 Guido van Rossum <guido at python.org>:
> On Thu, Jun 5, 2008 at 8:45 PM, Raymond Hettinger <python at rcn.com> wrote:
>> Does anyone actually need an int lookalike with binary methods but
>> cannot just inherit from int?
>
> Does anyone actually need an int lookalike with operations like +, -
> etc. but cannot just inherit from int? If the answer is yes, is there
> a compelling reason why they wouldn't want to support binary methods
> as well?

I have no vested interest either way, but I think someone mentioned
creating a long int equivalent based on Decimal earlier in the thread.
Wrappers for the gmp library might also want to do this. It's hardly
the world's biggest use case, though...

Paul.


More information about the Python-Dev mailing list