On Jul 28, 10:20 pm, sriram srinivasan <sri...@malhar.net> wrote:
> Thanks much for your note.
>
> What surprises me is that sum() doesn't need coercion to sage integers
> when working with int-typed variables and numbers:

That is because the sage shell and notebook preprocess input such that
integer literals are made into sage integers:

sage: type(10)
<type 'sage.rings.integer.Integer'>
sage: type(int(10))
<type 'int'>
sage: sum(x,x,1,int(10))
AttributeError: 'int' object has no attribute '_maxima_'

-- 
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
URL: http://www.sagemath.org

Reply via email to