I do the following in cython: for index1 from 0 <= index1 < size: vectorGen[index1] = 0
vectorGen[0] = -1 #main for for obtaining the whole set for index from 0 <= index < limit: #for1 localLimit = <int>ceil( <double>index / <double>modulus ) value = vectorGen[0] + 1 vectorGen[0] = value % modulus for index1 from 0 <= index1 < size: print vectorGen[index], print So, the first time for1 is executed, every value in vectorGen must be 0, and the second time the first one must be 1, but it is not, it continues being 0, and so on, in in the forth time it starts getting weird numbers and stuff. There is more code below, but that part of the code does not affect vectorGen, so, what can it be happening? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---