From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31689 invoked by alias); 16 Mar 2011 20:06:58 -0000 Received: (qmail 31680 invoked by uid 22791); 16 Mar 2011 20:06:57 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Mar 2011 20:06:51 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LI6005002I2HN00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Wed, 16 Mar 2011 22:06:49 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.107.218]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LI60040F2JBQU80@a-mtaout20.012.net.il>; Wed, 16 Mar 2011 22:06:49 +0200 (IST) Date: Wed, 16 Mar 2011 20:13:00 -0000 From: Eli Zaretskii Subject: Re: [python] [patch] Add is_valid to several classes In-reply-to: To: pmuldoon@redhat.com Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83oc5aq17q.fsf@gnu.org> References: <83r5a6q39z.fsf@gnu.org> 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/msg00878.txt.bz2 > 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?