From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9298 invoked by alias); 27 Mar 2009 18:05:09 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 9227 invoked by uid 22791); 27 Mar 2009 18:05:08 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org From: Pedro Alves To: archer@sourceware.org, Tom Tromey Subject: Re: [python][rfc] Attempt to print the base class if a there is no Python pretty-printer for a derived class. Date: Fri, 27 Mar 2009 18:05:00 -0000 User-Agent: KMail/1.9.10 Cc: Phil Muldoon References: <49CD0730.8070000@redhat.com> <200903271743.11238.alves.ped@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903271805.09768.pedro@codesourcery.com> X-SW-Source: 2009-q1/txt/msg00430.txt.bz2 On Friday 27 March 2009 17:50:39, Tom Tromey wrote: > Pedro> Does this do sensible things if class Y has some > Pedro> fields that mask the Base class's ones, when you only have a > Pedro> pretty printer for Base? > > Yeah... it pretty-prints Base, then goes on to print the subclass > fields as usual (perhaps pretty-printing them as well). Okay, I was concerned if the pretty printer for Base would access Y::x instead of Base::x. -- Pedro Alves