private

Bjorn Pettersen BPettersen at NAREX.com
Sat Jun 29 17:24:07 EDT 2002


> From: Dave Reed [mailto:dreed at capital.edu] 
> 
> > From: "Bjorn Pettersen" <BPettersen at narex.com>
> > 
> > > From: Dave Reed [mailto:dreed at capital.edu]
> > > 
> > [snip private members]
> > > 
> > > Kind of off-topic, but this got me curious. The only way I
> > > could think of is to assume (which I think is always true) 
> > > that the private data members are in order from the starting 
> > > address so based on the offset from the address of the object 
> > > you could access each one.
> > 
> > .. and of course #define private public, or just go in and 
> edit the .h 
> > file...
> > 
> > -- bjorn
> 
> Ok, I was thinking about doing it w/o recompiling the object 
> or lib file containing the class.

No reason to recompile as long as you make binary compatible changes to
the header file (which all of the suggestions above are).

-- bjorn





More information about the Python-list mailing list