2008/10/22 mabshoff <[EMAIL PROTECTED]>: > > > > On Oct 22, 5:14 am, "John Cremona" <[EMAIL PROTECTED]> wrote: >> While working on #3318 I cam across a really terrible bug introduced >> between 3.1.4 and 3.2.alpha0 in the file sage/rings/integer.pyx which >> produces the following terrible thing: >> >> ---------------------------------------------------------------------- >> | SAGE Version 3.2.alpha0, Release Date: 2008-10-20 | >> | Type notebook() for the GUI, and license() for information. | >> ---------------------------------------------------------------------- >> >> sage: sage.rings.integer.GCD_list([2,2,3]) >> 2 >> >> The problem seems to be in line 3654 of integer.pyx where there is a >> missing ==0 so the break occurs immediately where it shouldn't. >> >> Before I open a ticket, the person reponsible for the changes in >> integer.pyx should perhaps take a look. Probably the easiest way to >> fix it (if that is the only problem) is for me to make the changes in >> the patch I am preparing for #3318. > > Ok. Can you add a doctest in the right place to catch this issue in > the future. I would suspect that #4286 is the root cause of this bug.
You are right, that's where the offending line is. I'll put in a suitable doctest and include it all in my (second) patch for #3118 John > >> John > > Cheers, > > Michael > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---