Best practice for object attribute use in other objects...
23 Nov
2012
23 Nov
'12
10:26 a.m.
Hey Gang, I am using object attributes from other objects in my module. Can anyone tell me the best way to retrieve the object attributes without un-necessary overhead? Is it better to simply call a PyObject_GetAttrString(My_object, "width")? Does it create un-necessary overhead to declare the object in the head of the function as so? > My_object *m_obj; w = m_obj->width;
Also, would I need to --> Py_XDECREF(m_obj) at the end of the function if this is a "clean" way of doing it? Is there any performance concerns between the two?
-- Bust0ut, Surgemcgee: Systems Engineer --- surgemcgee.com Django_Teamplate3d
4369
Age (days ago)
4369
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert Steckroth