Re: print values from Py_BuildValue

2005-07-07 Thread John Machin
[EMAIL PROTECTED] wrote: > Hello, > > How do i print values returned by Py_BuildValue in Linux? 1. The same way as you would "in" any other operating system. 2. With difficulty. 3. If you must print something from C, print the C components (no difficulty). 4. If you are interested in checking wh

Re: print values from Py_BuildValue

2005-07-07 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > How do i print values returned by Py_BuildValue in Linux? > > PyObject *obj = Py_BuildValue("{s:i}", "Status", status); > > I need to print the Status value here I'm confused. You say you need to print the Status value here, but then you also say you want to print the