From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30601 invoked by alias); 10 Nov 2009 15:12:00 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: 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 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:12: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 X-SW-Source: 2009-q4/txt/msg00051.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