[Tutor] static PyObject * or non-static
Rob Benton
rob.benton at conwaycorp.net
Wed Sep 15 05:09:17 CEST 2004
Alan Gauld wrote:
>>static PyObject *
>>Noddy_name(Noddy* self)
>>{
>> static PyObject *format = NULL;
>> PyObject *args, *result;
>>
>>
>>make everything static that can be?
>>
>>
>
>No that will only waste memory. temporary variables within
>functions should go on the stack so that they can be deleted.
>
>Alan G.
>
>
>
>
In that chunk of code why isn't the format object temporary? I guess
that's what confusing me.
More information about the Tutor
mailing list