[python][patch] And range method to type

Eli Zaretskii eliz@gnu.org
Fri Dec 4 19:30:00 GMT 2009

> 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.

More information about the Gdb-patches mailing list