[C++-sig] rfe: change of behaviour with return_internal_reference policy

gideon may gideon at computer.org
Mon Aug 19 18:06:01 CEST 2002


>
> Okay, fixed.

Works perfect. Thanks!

>> I stumbled upon this because of my previous point. Without the mentioned
>> change,
>> PyWeakref_Newref returns a NULL. This causes 'system' to be
> Py_XDEFREF'd ->
>> crash in
>> life_support_dealloc (line 24). But somehow the the life_support_dealloc
>> function is never
>> being called.
>
> Those two sentences contradict one another!
> However, I think it's fixed.

I see what you mean, after reading my own post :)

> Contract obligations force me to concentrate on other things until
> probably 9/30.
>
> However, you could do:
>
>     .setattr("enum_value_1", (int)enum_value_1)
>

OK, that's what I've been doing.

ciao,

gideon 




More information about the Cplusplus-sig mailing list