Thanks, Steve. I did not know about "Base.parse_input_line". It can very 
well be the solution together with capturing STDOUT with redefining 
display(). My only concern is using an undocumented function. It may change 
or get removed.

On Sunday, June 29, 2014 10:15:29 AM UTC-6, Steven G. Johnson wrote:
>
> On Sunday, June 29, 2014 12:04:00 PM UTC-4, Laszlo Hars wrote:
>>
>>
>> Now "only" the problem of catching syntax error messages remain
>>
>
> My example code already catches syntax errors.   I don't see the 
> difficulty here.
>

Reply via email to