private

Dave Reed dreed at capital.edu
Sat Jun 29 16:51:11 EDT 2002


> 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.

Dave






More information about the Python-list mailing list