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: [RFC/Patch] Call overloaded operators to perform valid Python operations on struct/class values.


Thanks for taking a look Doug. I will address the nits if there is
interest in getting this in.

On Thu, Dec 5, 2013 at 10:24 PM, Doug Evans <xdje42@gmail.com> wrote:
> It feels sexy and all, but it's not clear to me going this path is a net win.
> If we could release it as experimental, without any promises to keep it
> or change it in incompatible ways, I'd say go for it.
> I'm curious what others think.

My main motivation to have something like this has been to aid
implementing "debug methods" that I have in my other patch. Same can
be said about non-operator methods as well, but clearly, allowing
methods to be invoked via the '.' operator on gdb.Value objects is
bad. I could not think of any reason why it could be bad to not allow
operators.

Thanks,
Siva Chandra
PS: For methods in general, I have ideas on how we can facilitate
calling them from Python. But, it is probably premature at this point
to talk about it if we have not yet decided about how "debug methods"
feature would eventually look like.


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