PyTorch Developer Podcast
PyTorch Developer Podcast
Edward Yang, Team PyTorch
PyObject preservation
16 minutes Posted Jun 9, 2021 at 1:00 pm.
0:00
16:19
Download MP3
Show notes

Given two separately refcounted objects, how can you arrange for each of them to stay live so long as the other is live? Why doesn't just having a strong-strong or strong-weak reference between the two objects work? What is object resurrection in CPython? What's a finalizer and why does it make things more complicated? How does Python GC work?

Further reading.