This is the mail archive of the gdb-patches@sourceware.org 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


On 07/16/2012 09:47 PM, Khoo Yit Phang wrote:
> Hi,
> 
> I'd like to resubmit my patches to make the "python" command start a standard Python prompt (I've completed the copyright assignment). As discussed back in January-February (http://permalink.gmane.org/gmane.comp.gdb.patches/71971), I've updated my patch to move the old "python" to "python-block".


Apologies for the delay, I've been mulling if this constitutes an API
change.  Because we have an API promise, we cannot materially alter
the behavior of an API without providing compatibility that is
transparent and automatic for older scripts.  

I am not sure what the implication for your change is.  If a user has
a script (or some code in .gdbinit, or whatever ) that uses "python"
will it break that user's script?  If so it is probably better to leave
python as it is, and use python-interactive (or whatever) for the
interactive prompt.  Judging that you changed the testsuite to use
python-block, I am guessing it is a material and non-compatible
change? I guess I need more data, testing.  I am replying here now as
you pinged the patch (which is totally fine, just updating you).

Cheers

Phil


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