Dear Carl,

thank you for your explanations.

> The 'int' (and its bignum counterpart, 'long') are native Python
> types.  As far as I know, we don't modify Python at all; removing
> 'int' would be major surgery, and we're not going to do it.
> 
> 'Integer' is a Sage type.  This means it has lots of useful
> mathematical convenience methods (like .is_square()), it participates
> in the coercion model, etc.  Also, 'Integer' is implemented with GMP,
> and 'long' is not, so 'Integer' is much faster for large numbers.

Would it be possible to extend long by new methods like is_square, and get
rid of Integer?

I guess 'long' is based on GMP too, does it make sense to have two concurrent
interfaces to GMP integers?

Paul Zimmermann

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to