This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 4/7] [python] API for macros: Add methods to get a gdb.Macro.
>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:
Phil> I think this should return a Tuple. Tuples are immutable, and unless
Phil> you for see a use for the user to manipulate the List, we should guard
Phil> against it. If you agree, please alter stpy_macros too.
Using a tuple means you have to iterate twice -- once to count the
objects and once to make the tuple.
Since we make a new object every time this method is called, returning a
list doesn't seem any worse than a tuple.
Tom