This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [python][patch] And range method to type


> Date: Fri, 04 Dec 2009 17:10:09 +0000
> From: Phil Muldoon <pmuldoon@redhat.com>
> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]