Re: Make the "python" command resemble the standard Python interpreter

Doug Evans
2012-01-12T17:28:01Z

On Thu, Jan 12, 2012 at 8:52 AM, <Paul_Koning@dell.com> wrote:
>>There already is an established behaviour for python without arguments (with or without a terminal).
>>
>>(gdb) python
>> > print 1 + 2
>> > end
>>3
>>(gdb)
>>
>>I've read the thread and I don't seen anyone raising this issue (could have missed it though.  I saw Tom's message re: what output CLI will generate, but this is about behaviour).
>>I've read the patch and I don't think using from_tty is ok to select between the different behaviours.
>>
>>Can we pick a different way of invoking the python interpreter?
>
> But "python" seems rather an intuitive way of doing it.

I COMPLETELY AGREE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
However, this changes things incompatibly ...