Re: Set PyObject value from C extension

2007-06-11 Thread Gabriel Genellina
En Tue, 12 Jun 2007 00:09:30 -0300, Allen <[EMAIL PROTECTED]> escribió: > I have the PyObject pointers, and want to set different type of values > to them. > > For example, > > INT8 nValue1 = 0; > INT16 nValue2 = 1; > FLOAT32 fValue = 1.0f; > > PyObject* var1 <= nValue1 > PyObject* var2 <= nValu

Set PyObject value from C extension

2007-06-11 Thread Allen
I have the PyObject pointers, and want to set different type of values to them. For example, INT8 nValue1 = 0; INT16 nValue2 = 1; FLOAT32 fValue = 1.0f; PyObject* var1 <= nValue1 PyObject* var2 <= nValue2 PyObject* var3 <= nValue3 How to do it? Regards, Allen Chen -- http://mail.python.org/m