Re: [RFA] Re: Python: add field access by name and standard python mapping methods to gdb.Type

Doug Evans
2011-11-05T21:04:35Z

On Sat, Nov 5, 2011 at 7:36 AM, Paul Koning <paulkoning@comcast.net> 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.