This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/4]: Make "python" start a standard Python prompt

>>>>> "Yit" == Khoo Yit Phang <> writes:

Yit> My original patch back in January tried to preserve the behavior of
Yit> "python" based "from_tty": if it was true, "python" would be
Yit> interactive; otherwise, it would not. But there were several
Yit> objections to that, I guess since "from_tty" is hard to track (see
Yit> The current
Yit> implementation is based on the discussion then.

I vaguely remember it.  I have a suspicion that I've changed my mind
since the old thread, but I didn't go back and read to see :)

I don't know what would make from_tty hard to track, but ok.

I just think it is very likely that "python" commands are in .gdbinits
and other places, and that breaking these would be bad.

Yit> One more option is to move the Python REPL to "python-repl" and alias
Yit> it to "py", and leave the old "python" as is. The "py" alias gives a
Yit> convenient short command, "python-repl" can be used from a script to
Yit> start a REPL, and the old "python" remains as is.

Like Matt says, "py" is probably already in use (I feel certain I've
seen it) and if anything we should do the converse -- alias "py" to
"python" if a new command goes in.

"python-repl" would be fine by me.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]