#4762: [with patch, needs work] Odd error message for congruence subgroups
---------------------------+------------------------------------------------
 Reporter:  ljpk           |        Owner:  craigcitro
     Type:  defect         |       Status:  new       
 Priority:  minor          |    Milestone:  sage-3.4  
Component:  modular forms  |   Resolution:            
 Keywords:                 |  
---------------------------+------------------------------------------------
Changes (by craigcitro):

  * summary:  [with patch, needs review] Odd error message for congruence
              subgroups => [with patch, needs work] Odd error
              message for congruence subgroups

Comment:

 Patch looks good, but there are still some troubles in the code. Here's an
 example:

 {{{
 sage: G = Gamma0(5)

 sage: G.0 in SL2Z
 ERROR: An unexpected error occurred while tokenizing input
 The following traceback may be corrupted or invalid
 The error message is: ('EOF in multi-line statement', (131, 0))

 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)

 
/Users/craigcitro/.sage/temp/sharma.local/18290/_Users_craigcitro__sage_init_sage_0.py
 in <module>()
 ----> 1
       2
       3
       4
       5

 /sage/local/lib/python2.5/site-packages/sage/groups/group.so in
 sage.groups.group.Group.__contains__ (sage/groups/group.c:1034)()
      46
      47
 ---> 48
      49
      50

 /sage/local/lib/python2.5/site-packages/sage/modular/congroup.pyc in
 __call__(self, x, check)
    1665         if isinstance(x, CongruenceSubgroupElement) and x.parent()
 == self:
    1666             return x
 -> 1667         x = CongruenceSubgroupElement(self, x, check=check)
    1668         if not check:
    1669             return x

 /sage/local/lib/python2.5/site-packages/sage/modular/congroup_element.pyc
 in __init__(self, parent, x, check)
      49             if x.determinant() != 1:
      50                 raise TypeError, "matrix must have determinant 1"
 ---> 51             x.set_immutable()
      52
      53         MultiplicativeGroupElement.__init__(self, parent)

 /sage/local/lib/python2.5/site-packages/sage/matrix/matrix0.so in
 sage.matrix.matrix0.Matrix.set_immutable (sage/matrix/matrix0.c:3464)()
     407
     408
 --> 409
     410
     411

 AttributeError: 'NoneType' object has no attribute 'set_immutable'

 sage:
 }}}

 I'm

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4762#comment:3>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to