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

Better conversion from zig slices to buffer protocol and back #29

Closed
delta003 opened this issue Sep 5, 2023 · 0 comments
Closed

Better conversion from zig slices to buffer protocol and back #29

delta003 opened this issue Sep 5, 2023 · 0 comments

Comments

@delta003
Copy link
Member

delta003 commented Sep 5, 2023

Currently, we expose underlying buffer bytes as slices of a specific type. We ignore the shape, and this works only for simple arrays (see https://docs.python.org/3/c-api/buffer.html#complex-arrays)

@delta003 delta003 changed the title Expand support for going from zig slices to buffer protocol and back Better conversion from zig slices to buffer protocol and back Sep 5, 2023
@gatesn gatesn closed this as completed Oct 18, 2023
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

2 participants