__getattr__ in C++

David P. Kleinschmidt dpk7386 at rit.edu
Mon May 15 06:35:53 CEST 2000


Hi all.  Just a real quick question:

I'm writing a Python module in C++ that provides a number of classes.  
Believe it or not, this is actually working pretty well.  I'm wondering, 
though, should __getattr__ increment the reference count before it 
returns the appropriate attribute, or not?

- Dave



More information about the Python-list mailing list