Re: Feature suggestion: sum() ought to use a compensated summationalgorithm

2008-05-09 Thread Duncan Booth
"Terry Reedy" <[EMAIL PROTECTED]> wrote: > > "Szabolcs Horvát" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >| Gabriel Genellina wrote: >| > >| > Python doesn't require __add__ to be associative, so this should >| > not be > used as a general sum replacement. >| >| It does not

Re: Feature suggestion: sum() ought to use a compensated summationalgorithm

2008-05-09 Thread Rhamphoryncus
On May 8, 3:09 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "Szabolcs Horvát" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED]| Gabriel Genellina wrote: > > | > > | > Python doesn't require __add__ to be associative, so this should not be > used as a general sum replacement. > | >

Re: Feature suggestion: sum() ought to use a compensated summationalgorithm

2008-05-08 Thread Terry Reedy
"Szabolcs Horvát" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Gabriel Genellina wrote: | > | > Python doesn't require __add__ to be associative, so this should not be used as a general sum replacement. | | It does not _require_ this, but using an __add__ that is not commutative