From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5960 invoked by alias); 6 Oct 2008 21:15:03 -0000 Received: (qmail 5941 invoked by uid 22791); 6 Oct 2008 21:15:03 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 06 Oct 2008 21:14:23 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id B11E910D58; Mon, 6 Oct 2008 21:14:21 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 8D86C10D34; Mon, 6 Oct 2008 21:14:21 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KmxPJ-00071A-2S; Mon, 06 Oct 2008 17:14:21 -0400 Date: Mon, 06 Oct 2008 21:15:00 -0000 From: Daniel Jacobowitz To: Tom Tromey Cc: Joel Brobecker , Thiago Jung Bauermann , gdb-patches ml Subject: Re: [rfc] expose gdb values to python Message-ID: <20081006211421.GB26663@caradoc.them.org> Mail-Followup-To: Tom Tromey , Joel Brobecker , Thiago Jung Bauermann , gdb-patches ml References: <1221199426.24580.26.camel@localhost.localdomain> <20081001054741.GE3665@adacore.com> <20081004222055.GA7541@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00165.txt.bz2 On Sat, Oct 04, 2008 at 05:58:16PM -0600, Tom Tromey wrote: > I guess I wouldn't mind a mangling scheme if it were unobtrusive enough. I had in mind something like this: itype = val.gdb_type() # Invoke method field = val.type # Fetch member value That saves on quoting, but will make other code more verbose. You're probably right that it's not worthwhile. -- Daniel Jacobowitz CodeSourcery