From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32192 invoked by alias); 30 Oct 2009 15:55:33 -0000 Received: (qmail 32182 invoked by uid 22791); 30 Oct 2009 15:55:32 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ahmler6.mail.eds.com (HELO ahmler6.mail.eds.com) (192.85.154.80) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 30 Oct 2009 15:55:26 +0000 Received: from ahmlir2.mail.eds.com (ahmlir2-2.mail.eds.com [192.85.154.132]) by ahmler6.mail.eds.com (8.14.2/8.13.8) with ESMTP id n9UFtOM4013550 for ; Fri, 30 Oct 2009 11:55:24 -0400 Received: from ahmlir2.mail.eds.com (localhost [127.0.0.1]) by ahmlir2.mail.eds.com (8.14.2/8.12.10) with ESMTP id n9UFtFxD024953 for ; Fri, 30 Oct 2009 11:55:15 -0400 Received: from usplmvpfe001.ent.rt.verigy.net ([192.100.40.4]) by ahmlir2.mail.eds.com (8.13.8/8.12.10) with ESMTP id n9UFtEHh024937 for ; Fri, 30 Oct 2009 11:55:15 -0400 X-EDSINT-Source-Ip: 192.100.40.4 Received: from usplmvpbe001.ent.rt.verigy.net ([10.16.58.34]) by usplmvpfe001.ent.rt.verigy.net with Microsoft SMTPSVC(6.0.3790.3959); Fri, 30 Oct 2009 10:55:14 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Python pretty printers and dynamic cast Date: Fri, 30 Oct 2009 17:25:00 -0000 Message-ID: <58596C4646708B4BB990C44839973330012C1AB4@usplmvpbe001.ent.rt.verigy.net> In-Reply-To: <00bc01ca57d2$0c74a480$255ded80$@com> From: "Elmenthaler, Jens" To: X-IsSubscribed: yes 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-10/txt/msg00411.txt.bz2 Hi all, I have the following situation: I have an interface type (a class with pure= virtual methods only, no data members), and an actual implementation type = (having the actual data members). The interface type is used in all public = interfaces, but the only implementation of it is the one implementation typ= e. Is there any way for a python pretty printer to do (or 'mimic') a dynamic c= ast, such that I can show the members of the implementation type where ever= I have the interface type? =20 Jens.