#13311: alarm doesn't work with some elliptic curve functions
-------------------------------+--------------------------------------------
   Reporter:  alexc            |             Owner:  cremona                    
              
       Type:  defect           |            Status:  new                        
              
   Priority:  major            |         Milestone:  sage-5.3                   
              
  Component:  elliptic curves  |          Keywords:  alarm elliptic curve 
curves ellipticcurve
Work issues:                   |   Report Upstream:  N/A                        
              
  Reviewers:                   |           Authors:                             
              
  Merged in:                   |      Dependencies:                             
              
   Stopgaps:                   |  
-------------------------------+--------------------------------------------
 The following code does not work as intended (I imagine), i.e. it does not
 interrupt the computation after 3 seconds.

 {{{
 #!python

 #!/usr/bin/python -tt

 from sage.all import *
 import time

 def main():
   alarm(3)
   try:
     EllipticCurve([123456, 789011]).rank()
     #time.sleep(5) #code works as intended if the above command is
 replaced with this
   except KeyboardInterrupt:
     print 'Took too long'

 # This is the standard boilerplate that calls the main() function.
 if __name__ == '__main__':
   main()
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13311>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
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