This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [Python] Allow attribute references to gdb.Value objects
>>>>> "Paul" == <Paul_Koning@Dell.com> writes:
Paul> That's a fair point, but it comes at the expense of making the code
Paul> look rather un-Pythonic. It seems reasonable to offer the option, and
Paul> document the fact that code that takes advantage of it may be affected
Paul> by new built-in attributes.
My reasoning is that we want to encourage robust pretty-printers (a main
use of the value API), and robust code has to use the dictionary syntax.
So, why not just enforce this by only having the dictionary syntax?
Tom