Ticket #9115 (needs_work enhancement)

Opened 3 years ago

Last modified 3 years ago

smart summing

Reported by: jason Owned by: jason
Priority: major Milestone: sage-5.11
Component: misc Keywords:
Cc: robertwb, ncohen Work issues:
Report Upstream: N/A Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

We should extend the Sage sum function to call a magic method to handle summing things in the case of the python sum calling convention (and we shouldn't use the "sum()" method, as that name is probably way too likely to be used, and may be used for something else!)

This can take care of the performance issues at #9089 and #9061.

Attachments

trac-9115.patch Download (1.5 KB) - added by jason 3 years ago.

Change History

Changed 3 years ago by jason

comment:1 Changed 3 years ago by jason

  • Cc robertwb, ncohen added
  • Status changed from new to needs_work

Here is an unfinished rough patch for the feature suggested at #9089.

Note: See TracTickets for help on using tickets.