-
Hi, I'm confused about the docs for
So, when should we use I'm not sure if I understand correctly: in free-threaded Python, multiple threads can execute in parallel. If one thread calls If that's the case, even if we migrate from Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
Python::attach
is exactly the same asPython::with_gil
. It was just renamed. The implementation did not change and this panic condition was there before as well, it just was not documented onwith_gil
it self, but only in the guide. So there will not be any new panics by migrating here. What we mean by "in the middle of GC traversal" is callingattach
within__traverse__
(directly or indirectly).