Hey William,

On Thursday, July 25, 2013 8:27:21 PM UTC+5:30, Volker Braun wrote:
>
> The problem is that exceptions raised by the inputsplitter are not handled 
> by IPython. I've asked at IPython-devel at 
> http://python.6.x6.nabble.com/InputSplitter-and-SyntaxError-td5025938.htmlbut 
> didn't get an answer so far.
>
>
>> That said, in this particular case: 
>>
>>   preparse('R.<t> = QQ{]') 
>>
>> outputs something that looks like a bug in the preparser implementation: 
>>
>>     ... 
>>     opening = constructor.rindex('[') 
>> ValueError: substring not found 
>>
>> If anything, it should be raising a SyntaxError, right? 
>>
>> William 
>>
>
   In my hack patch, I change this to a syntax error (although I probably 
should catch any exception and convert it to a SyntaxError). However by 
raising *any* (standard) exception in the inputsplitter, it is not caught 
by IPython and so it gets viewed as a Sage crash as per Volker's statement.

Best,
Travis

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to