From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14935 invoked by alias); 4 Dec 2009 15:32:41 -0000 Received: (qmail 14925 invoked by uid 22791); 4 Dec 2009 15:32:40 -0000 X-SWARE-Spam-Status: No, hits=-1.0 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; Fri, 04 Dec 2009 15:32:32 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KU400200WGXX400@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Fri, 04 Dec 2009 17:32:29 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.213.252]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KU400M2XWI4GM90@a-mtaout20.012.net.il>; Fri, 04 Dec 2009 17:32:29 +0200 (IST) Date: Fri, 04 Dec 2009 15:32:00 -0000 From: Eli Zaretskii Subject: Re: [python][patch] And range method to type In-reply-to: <4B1929DC.7070809@redhat.com> To: Phil Muldoon Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <834oo6lppw.fsf@gnu.org> References: <4B1929DC.7070809@redhat.com> 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: 2009-12/txt/msg00053.txt.bz2 > Date: Fri, 04 Dec 2009 15:25:16 +0000 > From: Phil Muldoon > > This patch adds a "range" method for GDB.Types. It only supports types > that support a range, or the range type itself. > > Ok? A couple of comments to the doco part: > +@defmethod Type range > +Return a Python @code{Tuple} object that contains two elements. The > +first element of the @code{Tuple} contains the low bound of the type; the > +second element contains the high bound of the type. This could be made a bit more concise: Return a Python @code{Tuple} object that contains two elements: the low bound of the argument type and the high bound of that type. > If the type does > +not have a range, @value{GDBN} will throw a @code{RuntimeError} > +@end defmethod The last sentence is incomplete. Thanks.