From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 436 invoked by alias); 16 Aug 2011 11:45:41 -0000 Received: (qmail 428 invoked by uid 22791); 16 Aug 2011 11:45:40 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.nokia.com (HELO mgw-da01.nokia.com) (147.243.128.24) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 16 Aug 2011 11:45:24 +0000 Received: from gar.localnet (bettdhcp167113.europe.nokia.com [172.25.167.113]) by mgw-da01.nokia.com (Switch-3.4.4/Switch-3.4.3) with ESMTP id p7GBjKA9003174; Tue, 16 Aug 2011 14:45:20 +0300 From: =?iso-8859-1?q?Andr=E9_P=F6nitz?= To: gdb@sourceware.org Subject: Re: Some Python ideas, looking for feedback Date: Tue, 16 Aug 2011 11:45:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.32-21-generic; KDE/4.4.5; i686; ; ) Cc: "ext Paul_Koning@Dell.com" References: <09787EF419216C41A903FD14EE5506DD0151D583A2@AUSX7MCPC103.AMER.DELL.COM> In-Reply-To: <09787EF419216C41A903FD14EE5506DD0151D583A2@AUSX7MCPC103.AMER.DELL.COM> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201108161345.33448.andre.poenitz@nokia.com> X-Nokia-AV: Clean X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00059.txt.bz2 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" % ... Andre'