Hi!
I tried to do some profiling, using prun. But at some point I pressed
Ctrl-C. The reaction, to my surprise, was the following message:
Control-C pressed. Interrupting R. Please wait a few seconds...
followed by a traceback that ended with
/home/king/SAGE/devel/sage-4.0/local/lib/python2.5/site-packages/sage/
interfaces /singular.pyc in eval(self, x, allow_semicolon, strip,
**kwds)
527 # Syncrhonize the interface and clear any variables
that are que ued up to
528 # be cleared.
--> 529 self._synchronize()
530 if len(self.__to_clear) > 0:
531 for var in self.__to_clear:
/home/king/SAGE/devel/sage-4.0/local/lib/python2.5/site-packages/sage/
interfaces /expect.pyc in _synchronize(self, cmd)
922 self._sendstr(cmd)
923 try:
--> 924 self._expect_expr(timeout=0.5)
925 if not s in self._expect.before:
926 self._expect_expr(s,timeout=0.5)
/home/king/SAGE/devel/sage-4.0/local/lib/python2.5/site-packages/sage/
interfaces /expect.pyc in _expect_expr(self, expr, timeout)
833 else:
834 break
--> 835 raise KeyboardInterrupt, msg
836
837 def _sendstr(self, str):
KeyboardInterrupt:
If I interprete it correctly, I pressed Ctrl-C while pexpect had a
chat with Singular.
However, I don't understand why the first line mentions R!
R isn't used in my code at all, and also when leaving Sage, there is
no "Exiting spawned R Interpreter process.".
Also I doubt that R is used by prun (am I right that prun is not Sage
specific?).
Searching the sources, I found that the string "Control-C pressed.
Interrupting R. Please wait a few seconds" only occurs in expect.py,
in _expect_expression. So, perhaps R isn't involved, but it is just a
misleading warning message?
Do you think I should post a ticket, changing it into "Control-C
pressed. Interrupting interface. Please wait a few seconds"?
Cheers,
Simon
--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---