This is the mail archive of the gdb@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: should gdb.Value implement __hash__()?


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


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