Skip to content

How will PyO3 work with the upcoming no-GIL Python? #3576

@bplevin36

Description

@bplevin36

PEP 703 is coming, so GIL-less CPython builds are going to be commonplace pretty soon. What are the PyO3 maintainers' thoughts on how to support this? I'm assuming it will require some PyO3 API changes/additions, since the soundness guarantees given by CPython itself will change dramatically (e.g. Python critical sections ).

I'm keenly interested in this, since all the extensions I've built with PyO3 have been for Flask servers, where getting GIL-usage right has been very important. Just curious to see what direction you have in mind!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions