This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [python] [patch] Add is_valid to several classes
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Phil Muldoon <pmuldoon@redhat.com>
>> Cc: gdb-patches@sourceware.org
>> Date: Wed, 16 Mar 2011 20:02:13 +0000
>>
>> >> +@code{gdb.Block} supports via the Python method @code{iter} function.
>> >
>> > Did you really mean to say "Python method `iter' function"? I think
>> > either "method" or "function", no?
>>
>> iter() is a built in Python function (nothing to do with GDB), that
>> extracts an iterator from a Python object if the object supports it. I
>> don't mind how we word it. It was purely illustrative. In fact in
>> Python there are many ways to invoke iteration in an object that
>> supports it. The "in" keyword for example (IE, for x in y).
>> What do you think?
>
> How about
>
> @code{gdb.Block} supports via the Python method @code{iter}.
>
> ? Is that accurate?
Paul's wording seems like a super-set of the above. That seems to work
for me, does it for you?
Cheers
Phil