From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30597 invoked by alias); 10 Nov 2009 15:12:00 -0000 Received: (qmail 30576 invoked by uid 22791); 10 Nov 2009 15:11:59 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Nov 2009 15:11:55 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nAAFBodm021670 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 10 Nov 2009 10:11:50 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nAAFBnC6030763; Tue, 10 Nov 2009 10:11:50 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id nAAFBnoK005734; Tue, 10 Nov 2009 10:11:49 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id C909A37815E; Tue, 10 Nov 2009 08:11:48 -0700 (MST) From: Tom Tromey To: ppluzhnikov@google.com (Paul Pluzhnikov) Cc: gdb@sourceware.org, archer@sourceware.org, dje@google.com Subject: Re: [python] Pretty-printers and addressprint References: <20091110021158.C3C2576D70@ppluzhnikov.mtv.corp.google.com> Reply-To: tromey@redhat.com Date: Tue, 10 Nov 2009 15:45:00 -0000 In-Reply-To: <20091110021158.C3C2576D70@ppluzhnikov.mtv.corp.google.com> (Paul Pluzhnikov's message of "Mon, 9 Nov 2009 18:11:58 -0800 (PST)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2009-11/txt/msg00116.txt.bz2 >>>>> "Paul" == Paul Pluzhnikov writes: Paul> The issue I am having is there is no apparent way to get rid of the Paul> address from python side (address is not printed when the printer Paul> returns a python string instead of a value), whereas if the Paul> printer really wants to print the address, it can trivally add Paul> it back by returning appropriate python string. Adding it manually like that will also affect MI output, which may not be what you really want. Paul> Should the decision to print addresses be deferred to the Paul> pretty-printer? Is the patch below reasonable? I'm ok with it. If nobody complains this week, check it in. Tom