[C++-sig] Re: boost:python:embedding
Dirk Gerrits
dirk at gerrits.homeip.net
Tue May 6 23:10:42 CEST 2003
David Abrahams wrote:
> Dirk Gerrits <dirk at gerrits.homeip.net> writes:
>
>> From the docs:
>>
>>int Py_AtExit(void (*func) ())
>> Register a cleanup function to be called by Py_Finalize()
>>[snip]
>>Since Python's internal finallization will have completed before the
>>cleanup function, no Python APIs should be called by func.
>
>
> I'm not sure if these docs are accurate; I checked into it once. You
> might want to use the source (Luke).
It seems to me that the docs are accurate. call_ll_exitfuncs() is the
very last thing done by Py_Finalize() in the CVS source
(Python/pythonrun.c).
>>I assumed that the releasing would need to make Python API calls. But
>>perhaps I'm mistaken?
>
>
> No, you're correct.
Ok, atexit.register() it is then?
Dirk Gerrits
More information about the Cplusplus-sig
mailing list