From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3328 invoked by alias); 16 Mar 2011 20:13:18 -0000 Received: (qmail 3319 invoked by uid 22791); 16 Mar 2011 20:13:17 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Mar 2011 20:13:13 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p2GKDAsQ022612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 16 Mar 2011 16:13:11 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p2GKD93N008148; Wed, 16 Mar 2011 16:13:10 -0400 From: Phil Muldoon To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: [python] [patch] Add is_valid to several classes References: <83r5a6q39z.fsf@gnu.org> <83oc5aq17q.fsf@gnu.org> Reply-to: pmuldoon@redhat.com X-URL: http://www.redhat.com Date: Wed, 16 Mar 2011 21:50:00 -0000 In-Reply-To: <83oc5aq17q.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 16 Mar 2011 22:06:49 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00880.txt.bz2 Eli Zaretskii writes: >> From: Phil Muldoon >> 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