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

Using context managers #394

Open
almarklein opened this issue Oct 23, 2023 · 0 comments
Open

Using context managers #394

almarklein opened this issue Oct 23, 2023 · 0 comments

Comments

@almarklein
Copy link
Member

There's a few places where the API could be made more Pythonic by supporting context managers.

Use-cases:

  • The buffer.map() and buffer.unmap() is pretty obvious.
  • Maybe some part of the command encoders (which have .end()), and/or the queue.
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

No branches or pull requests

1 participant