Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joachim Protze <joachim.protze@wh2.tu-dresden.de>
To: gdb@sourceware.org
Subject: Re: should gdb.Value implement __hash__()?
Date: Tue, 02 Nov 2010 22:01:00 -0000	[thread overview]
Message-ID: <4CD08A25.7000207@wh2.tu-dresden.de> (raw)
In-Reply-To: <m3sjzj5tfl.fsf@fleche.redhat.com>

On 02.11.2010 22:03, Tom Tromey wrote:
>
> In your case if you know that you only want your hash to hold pointer
> values, you can use long(value) as the key.
>
>    
Thanks for this hint, i tried int(value) and got an error, but i did not 
try long(value).

Joachim


      parent reply	other threads:[~2010-11-02 22:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-02 12:32 Joachim Protze
2010-11-02 20:59 ` Tom Tromey
2010-11-02 21:10   ` Paul Koning
2010-11-02 22:01   ` Joachim Protze [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CD08A25.7000207@wh2.tu-dresden.de \
    --to=joachim.protze@wh2.tu-dresden.de \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox