On 9/24/07, Gonzalo Tornaria <[EMAIL PROTECTED]> wrote: > > The following happens sometimes, I guess depending on timing:
Please open a new ticket about this. The solution is to add a special control-c handler function to devel/sage/interfaces/gp.py that overloads the one in expect.py, and does some extra synchronization / waiting / etc. more suitable to PARI than the generic behavior. You're right, this has nothing to do with #710. > sage: gp.eval('factor(2^997-1)') > [HIT CTRL-C] > Interrupting GP/PARI interpreter... > Interrupting GP/PARI interpreter... > --------------------------------------------------------------------------- > <type 'exceptions.KeyboardInterrupt'> Traceback (most recent call last) > [....] > <type 'exceptions.KeyboardInterrupt'>: Ctrl-c pressed while running > GP/PARI interpreter > sage: gp.eval('factor(2^997-1)') > [HIT CTRL-C] > 'factor(2^997-1)' > sage: gp.eval('factor(2^997-1)') > [HIT CTRL-C] > '' > sage: gp.eval('factor(2^997-1)') > Interrupting GP/PARI interpreter... > Interrupting GP/PARI interpreter... > [repeat] > > So, it seems that under some circumstances, the error handler is > cycling between 3 different behaviours. > > This is not really #710; in that case the error handler was going > wrong within _sig_on/_sig_off pairs, but I believe there's nothing > like that here. > > Gonzalo > > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---