[C++-sig] Re: static const object access?
David Abrahams
dave at boost-consulting.com
Tue Jun 10 20:26:39 CEST 2003
Gavin Doughtie <gdoughtie at anim.dreamworks.com> writes:
> This does in fact work, but now I get "Fatal Python error:
> PyThreadState_Get: no current thread" when the module unloads.
>
> David Abrahams wrote:
>
>> // wrap this instead.
>> object getNullA()
>> {
>> static object nullA(ref(B::getNullA()));
>> return nullA;
>> }
>> HTH,
Python extension modules don't unload, AFAIK. Do you mean
PyFinalize()?
Please see: http://aspn.activestate.com/ASPN/Mail/Message/1446109
Dirk Gerrits has been working on solving that issue; I'm sure he'd
appreciate your help.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list