Object lifetime beyond pybind11's module lifetime. #5634
Unanswered
JulianSchutsch
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Env: Python 3.12.7, Pybind11: 2.13.5-1, Linux: Xubuntu 24.10.
When catching unloading of the library using atexit, following pattern shows in the logs:
This can be avoided by using manual del on objects in question, but, is there a more elegant way? Delaying unload of the pybind11 module maybe?
Thanks in advance.
Julian
Beta Was this translation helpful? Give feedback.
All reactions