Ticket #9321 (new defect)

Opened 3 years ago

Last modified 2 years ago

Documentation for sum() function should indicate Python syntax *first*

Reported by: rlm Owned by: mvngu
Priority: major Milestone:
Component: documentation Keywords:
Cc: kcrisman Work issues:
Report Upstream: N/A Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

When did we hijack the sum function? Based on the documentation there, I have (today alone) had four different people come up to me and ask why something like the following doesn't work:

sage: sum(Integer(x), x, 0, 9)

I know the reasons this shouldn't work, but newbies definitely don't. It should say something about how to do

sage: sum( Integer(x) for x in range(10) )

before "getting all symbolic."

Change History

comment:1 Changed 2 years ago by kcrisman

  • Cc kcrisman added
Note: See TracTickets for help on using tickets.