The bug seems to be at line 458 of integer_mod_ring.py. I assume that the line
yield i should be replaced by yield integer_mod.IntegerMod(self, i) but I am not sure this is the most efficient solution. Michel On Mar 12, 8:24 pm, David Harvey <[EMAIL PROTECTED]> wrote: > On Mon, 12 Mar 2007, Michel wrote: > > > I noticed a strange inconsistency. If you do > > > [i for i in IntergerModRing(5)] > > > you seem to be getting a list of Integers (and not a list of Integers > > mod 10). > > > This seems to be different from the usual behaviour in sage and quite > > confusing. E.g. > > consider > > > [i for i in GF(5)] > > That's definitely a bug. I'll report it to trac, and also to whom I > suspect is the author of that code, who is sitting right next to me :-) > > david --~--~---------~--~----~------------~-------~--~----~ 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://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---