Re: PyObject_SetAttrString - doesn't set instance attribute

2010-05-02 Thread Carl Banks
On May 2, 3:26 am, Jason wrote: > On May 2, 5:52 pm, Carl Banks wrote: > > > Not sure what you're doing here.  It looks like you are being passed > > an object of a given type, then you get the type object, call it to > > create another object of that type, and assign it to object->instance. > >

Re: PyObject_SetAttrString - doesn't set instance attribute

2010-05-02 Thread Jason
On May 2, 5:52 pm, Carl Banks wrote: > Not sure what you're doing here.  It looks like you are being passed > an object of a given type, then you get the type object, call it to > create another object of that type, and assign it to object->instance. Sorry, I should have noted that the "NautilusP

Re: PyObject_SetAttrString - doesn't set instance attribute

2010-05-02 Thread Carl Banks
On May 1, 4:04 am, Jason wrote: > I'm having a bit of trouble with C/Python bindings. Particularly, > trying to set an instance variable from C when the object is > initialised using PyObject_SetAttrString, but nothing seems to happen. > The C initialisation code is: > > static void > nautilus_pyt

PyObject_SetAttrString - doesn't set instance attribute

2010-05-01 Thread Jason
I'm having a bit of trouble with C/Python bindings. Particularly, trying to set an instance variable from C when the object is initialised using PyObject_SetAttrString, but nothing seems to happen. The C initialisation code is: static void nautilus_python_object_instance_init (NautilusPythonObject