This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA][Python] Change gdb.Value.address from a method to an attribute.
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- Cc: tromey at redhat dot com, gdb-patches at sourceware dot org
- Date: Sun, 29 Mar 2009 06:13:22 +0300
- Subject: Re: [RFA][Python] Change gdb.Value.address from a method to an attribute.
- References: <orskllhfo3.fsf@oliva.athome.lsd.ic.unicamp.br> <20090310125945.GA4376@caradoc.them.org> <1236700079.11106.1.camel@localhost.localdomain> <orzlftfhu1.fsf@oliva.athome.lsd.ic.unicamp.br> <1236710732.11106.30.camel@localhost.localdomain> <m3hc1rluz1.fsf@fleche.redhat.com> <1237771863.25721.17.camel@localhost.localdomain> <m3bprs9lqg.fsf@fleche.redhat.com> <1238275138.8292.3.camel@localhost.localdomain>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Thiago Jung Bauermann <bauerman@br.ibm.com>
> Cc: gdb-patches@sourceware.org
> Date: Sat, 28 Mar 2009 18:18:57 -0300
>
> +@defmethod Value address
> +If the @code{gdb.Value} object is addressable, this read-only attribute
> +holds a @code{gdb.Value} object representing the address. Otherwise,
> +this attribute holds @code{None}.
> +@end defmethod
The two uses of `gdb.Value' so close to one another and meaning two
different things might confuse the reader. Is it really important to
make the point that the address attribute is itself a `gdb.Value'? If
not, I'd suggest to rephrase:
If the @code{gdb.Value} object is addressable, this read-only
attribute holds its address.
Thanks.