C API PyObject_GetAttrString returns <getset_descriptor> not the object I expected

Barry Scott barry at barrys-emacs.org
Sun Feb 10 07:08:18 EST 2019


After calling PyObject_GetAttrString() I expected to get a PyObject string 
back but I found that I had been given a <getset_description> instead.

(gdb) p *args_o 
$4 = <getset_descriptor at remote 0x7fffea87c7e0>

What is going on and how do I get from the <getset_descriptor> to the object I 
want?

Barry





More information about the Python-list mailing list