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

feat(bindings)!: use capsules in python #3384

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ObserverOfTime
Copy link
Member

Capsules ensure we won't try to load random locations in memory if users pass any random integer.

Using object in the type stub for now, since CapsuleType is only available in Python 3.13,
which is unreleased, and typing-extensions 4.12, which was just released today.


Let's wait for py-tree-sitter 0.23 to be ready first.

@ObserverOfTime ObserverOfTime marked this pull request as ready for review May 31, 2024 14:34
@ObserverOfTime ObserverOfTime added this to the 0.23 milestone Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant