[C++-sig] Re: static const object access?

Gavin Doughtie gdoughtie at anim.dreamworks.com
Tue Jun 10 19:54:05 CEST 2003


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,

-- 
Gavin Doughtie
DreamWorks SKG
(818) 695-3821





More information about the Cplusplus-sig mailing list