public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: <Paul_Koning@Dell.com>
To: <andre.poenitz@nokia.com>, <gdb@sourceware.org>
Subject: RE: Some Python ideas, looking for feedback
Date: Tue, 16 Aug 2011 14:45:00 -0000	[thread overview]
Message-ID: <09787EF419216C41A903FD14EE5506DD0151D585D2@AUSX7MCPC103.AMER.DELL.COM> (raw)
In-Reply-To: <201108161345.33448.andre.poenitz@nokia.com>

>On Tuesday 16 August 2011 13:03:42 ext Paul_Koning@Dell.com wrote:
>> [...]
>> And a question: is there a way to get the value corresponding to an enum type's value name?  
>> The name comes back in the fields() output but I don't see how I would get the value.  Could that be made a value attribute of the field object?
>
>int(...) works, or "%d" % ...

That works for Value objects, but not for fields of Type.  But it looks like an obvious way to make it work for Type (rather than a "value" attribute as I suggested earlier).

	paul

  reply	other threads:[~2011-08-16 14:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-16 11:04 Paul_Koning
2011-08-16 11:45 ` André Pönitz
2011-08-16 14:45   ` Paul_Koning [this message]
2011-08-17 18:37     ` Andrew Oakley
2011-08-17 19:13       ` Andrew Oakley
2011-08-17 19:29         ` Eli Zaretskii
2011-08-17 19:35           ` Andrew Oakley
2011-08-17 20:38             ` Eli Zaretskii
2011-08-17 20:52         ` Daniel Jacobowitz
2011-08-17 21:15           ` Paul_Koning
2011-08-19 14:14             ` Tom Tromey
     [not found]         ` <CAN9gPaFPhVYmfUO0sZeMUUy0X7x+hyUd8wDFJZXbe98RVvTLSw__33957.6404345737$1313614343$gmane$org@mail.gmail.com>
2011-08-19 14:14           ` Tom Tromey
2011-08-24  9:48             ` Andrew Oakley
2011-08-24 11:42               ` Phil Muldoon
2011-08-24 11:46                 ` Andrew Oakley
2011-08-24 16:17                   ` Phil Muldoon
     [not found]               ` <m3aaazavdq.fsf__47025.4836873666$1314186175$gmane$org@redhat.com>
2011-08-25 17:59                 ` Tom Tromey
2011-08-24 11:39 ` Phil Muldoon
2011-08-30 20:09 ` Tom Tromey

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=09787EF419216C41A903FD14EE5506DD0151D585D2@AUSX7MCPC103.AMER.DELL.COM \
    --to=paul_koning@dell.com \
    --cc=andre.poenitz@nokia.com \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).