Robert Bradshaw wrote:
> On May 4, 2009, at 10:45 AM, kcrisman wrote:

> len() is a Python builtin, which is a good indication that it will  
> return Python types (especially when acting on a Python type). In  
> fact, there's no way on the c-api level to return a Sage integer, as  
> len() always returns a c long. This is similar to range returning a  
> list of python ints.
> 

Another Python builtin is pow(), but how is it possible that
type(pow(2,9,11)) returns
<type 'sage.rings.integer_mod.IntegerMod_int'>

Or am I mistaken?

Jaap

(This comes from a question from a private e-mail)


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

Reply via email to