From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7824 invoked by alias); 4 Dec 2009 19:30:49 -0000 Received: (qmail 7810 invoked by uid 22791); 4 Dec 2009 19:30:47 -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 mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Dec 2009 19:30:43 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0KU500A007D71O00@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Fri, 04 Dec 2009 21:30:34 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.213.252]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KU5007977IX1U90@a-mtaout23.012.net.il>; Fri, 04 Dec 2009 21:30:34 +0200 (IST) Date: Fri, 04 Dec 2009 19:30:00 -0000 From: Eli Zaretskii Subject: Re: [python][patch] And range method to type In-reply-to: <4B194271.1060908@redhat.com> To: Phil Muldoon Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83vdgmk05m.fsf@gnu.org> References: <4B1929DC.7070809@redhat.com> <834oo6lppw.fsf@gnu.org> <4B194271.1060908@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/msg00064.txt.bz2 > Date: Fri, 04 Dec 2009 17:10:09 +0000 > From: Phil Muldoon > CC: gdb-patches@sourceware.org > > +@defmethod Type range > +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 raise a @code{RuntimeError}. > +@end defmethod > > With your suggestions, adding the missing full-stop and changing "throw" to "raise" > in the exception case, is this ok? Fine with me, although I thought you'd want to say "raise a RuntimeError exception". But if your wording is accepted in Python context, I'm fine with that.