Embedding Q: PyObject_CallObject

Sung Kim skim at adobe.com
Thu Aug 22 15:20:53 EDT 2002

Thank you for the follow-up!

What if we don't know anything about the returned object, such as any 
of its attributes?

Specially, I want to know the names (in string form, so I can present 
them in a GUI) of its methods. Thanks again.

--Sung H. Kim
   skim at adobe.com

On Thursday, August 22, 2002, at 11:24 AM, Gerhard Häring wrote:

> * Sung Kim <skim at adobe.com> [2002-08-22 10:56 -0700]:
>> I'm new to Python and hope this isn't too basic a question.
>> If I use the C routine PyObject_CallObject to get a class instance
>> back from Python, which utility routine can I use to access the
>> returned object?
> Many, though you'll probably want PyObject_GetAttr.
> -- 
> This sig powered by Python!
> Außentemperatur in München: 18.9 °C      Wind: 1.4 m/s
> -- 
> http://mail.python.org/mailman/listinfo/python-list

More information about the Python-list mailing list