This is the mail archive of the
mailing list for the GDB project.
Re: [RFA] Re: Python: add field access by name and standard python mapping methods to gdb.Type
On Sat, Nov 5, 2011 at 7:36 AM, Paul Koning <email@example.com> wrote:
>> Maybe I'd be happy if gdb.Type (and maybe gdb.Value) were simply more
>> rigorous in throwing exceptions for invalid cases.
> I agree. ?I'll put that together.
Sounds great if it's possible.
I don't know enough about the C Python API, but when I tried a simple
hack to have len(scalar_type) throw an exception "not scalar_type"
started throwing exceptions too. :-( See PyObject_IsTrue.