This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [python][rfc] Attempt to print the base class if a there is no Python pretty-printer for a derived class.


>>>>> "Pedro" == Pedro Alves <alves.ped@gmail.com> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]