From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2795 invoked by alias); 27 Mar 2009 17:50:52 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 2469 invoked by uid 22791); 27 Mar 2009 17:50:51 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org To: Pedro Alves Cc: archer@sourceware.org, Phil Muldoon Subject: Re: [python][rfc] Attempt to print the base class if a there is no Python pretty-printer for a derived class. References: <49CD0730.8070000@redhat.com> <200903271743.11238.alves.ped@gmail.com> From: Tom Tromey Reply-To: Tom Tromey Date: Fri, 27 Mar 2009 17:50:00 -0000 In-Reply-To: <200903271743.11238.alves.ped@gmail.com> (Pedro Alves's message of "Fri\, 27 Mar 2009 17\:43\:10 +0000") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2009-q1/txt/msg00428.txt.bz2 >>>>> "Pedro" == Pedro Alves writes: 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). Phil, could you post the before- and after- results of your example? I think that would clear things up. Pedro> What about private inheritance, sometimes used as an implementation Pedro> detail, but not representing an is-a relationship? This will also work; the code doesn't consider access flags. Tom