开发者

Python C-API module exit handler - an atexit equivalent?

开发者 https://www.devze.com 2022-12-16 21:42 出处:网络
I\'m using Python 开发者_开发知识库ver 2.6.4 There is a function I have to call from a C library when my extension module exits/is unloaded. What would be the equivalent of atexit for a C extension m

I'm using Python 开发者_开发知识库ver 2.6.4

There is a function I have to call from a C library when my extension module exits/is unloaded. What would be the equivalent of atexit for a C extension module?


The Py_AtExit() function can be used to register up to 32 cleanup functions.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号