pyo3/newsfragments/3616.added.md
Nathan Kent 3249feb85c
Enable GILProtected access via PyVisit
Closes #3615

This simply adds a new method which uses the existence of a `PyVisit`
object as proof that the GIL is held instead of a `Python` object. This
allows `GILProtected` to be used in instances where contained Python
objects need to participate in garbage collection. Usage in this
situation should be valid since no Python calls are made and this does
not provide any additional mechanism for accessing a `Python` object.
2023-12-05 11:10:00 -08:00

40 B

Add traverse method to GILProtected