logo       

how to obtain a (python) object's __name__ special attribute: msg#00260

python.c++

Subject: how to obtain a (python) object's __name__ special attribute

hi there,

I'v successfully read in a derived class definition from a python script
into my C++ application, and I have instantiated it. How can I now determine
the 'type name' of the object ? I try attr("__name__") but it appears
the __name__ attribute isn't visible as an ordinary attribute, i.e. this
call raises an exception.

Thanks,
Stefan


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise