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:

sum(k, k, 1, 10)   # ok
n = 10; sum(k, k, 1, n)    # ok

I couldn't figure out the code path that looks for this difference.
How does the sum  'know' that it is being invoked inside a loop? The
parse tree for sum should be no different.

-- 
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