On Tue, Aug 23, 2022 at 3:47 AM Sebastian Berg <sebast...@sipsolutions.net> wrote: > What is the status of immortality? None of these seem forbidding on > first sight, so long that we can get the state everywhere. > Having immortal object seems convenient, but probably not particularly > necessary.
The current proposal for immortal objects (PEP 683) will be going to the steering council soon. However, it only applies to the CPython runtime (internally). We don't have plans right now for a public API to make an object immortal. (That would be a separate proposal.) If isolating the extension, a la PEP 630, isn't feasible in the short term, we would certainly be open to discussing alternatives (incl. immortal objects). > One other thing I am not quite sure about right now is GIL grabbing. > `PyGILState_Ensure()` will continue to work reliably? > This used to be one of my main worries. It is also something we can > fix-up (pass through additional information), but where a fallback > seems needed. Compatibility of the GIL state API with subinterpreters has been a long-standing bug. [1] That will be fixed. Otherwise, PyGILState_Ensure() should work correctly. -eric [1] https://github.com/python/cpython/issues/59956 _______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com