On Sat, Apr 19, 2008 at 5:08 PM, William Stein <[EMAIL PROTECTED]> wrote:
>
>
>  On Sat, Apr 19, 2008 at 1:55 PM, David Joyner <[EMAIL PROTECTED]> wrote:
>  >
>  >  Hi:
>  >
>  >  I wonder if this behavior is a bug?
>  >
>  >  sage: G = DirichletGroup(21)
>  >  sage: chi = G.0; chi
>  >  [-1, 1]
>  >  sage: chi.values()
>  >  [0, 1, -1, 0, 1, -1, 0, 0, -1, 0, 1, -1, 0, 1, 0, 0, 1, -1, 0, 1, -1]
>  >
>  >  So far, so good (similar code is in the tutorial:
>  >  http://www.sagemath.org/doc/html/tut/node15.html).
>  >  Now use a different base ring:
>  >
>  >
>  >  sage: G = DirichletGroup(21, GF(37))
>  >  sage: chi = G.0; chi
>  >  [36, 1]
>  >  sage: chi.values()
>  >  
> ---------------------------------------------------------------------------
>  >  <type 'exceptions.IndexError'>            Traceback (most recent call 
> last)
>  >
>  >  /mnt/drive_hda1/sagefiles/sage-3.0.alpha5/<ipython console> in <module>()
>  >
>  >  
> /mnt/drive_hda1/sagefiles/sage-3.0.alpha5/local/lib/python2.5/site-packages/sage/modular/dirichlet.py
>  >  in values(self)
>  >    1056             ########################
>  >    1057             # record character value on n
>  >  -> 1058             result_list[n.ivalue] = R_values[value.ivalue]
>  >    1059             # iterate:
>  >    1060             #   increase the exponent vector by 1,
>  >
>  >  <type 'exceptions.IndexError'>: list index out of range
>  >
>  >
>  >  Should I report this to trac?
>  >
>  >  - David
>
>  Yes, this is definitely a bug.  Definitely report it to trac.

Done:
http://trac.sagemath.org/sage_trac/ticket/2959
I set the milestone as 3.0.1 since I thought Michael said no more
new tickets in 3.0.

>
>  william
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to