Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable GILProtected access via PyVisit #3616

Merged
merged 1 commit into from
Dec 5, 2023

Commits on Dec 5, 2023

  1. Enable GILProtected access via PyVisit

    Closes PyO3#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.
    neachdainn committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    3249feb View commit details
    Browse the repository at this point in the history