Skip to content

Custom drop on PyBufferWrapper#231

Merged
kylebarron merged 2 commits intomainfrom
kyle/buffer-custom-drop
Oct 14, 2024
Merged

Custom drop on PyBufferWrapper#231
kylebarron merged 2 commits intomainfrom
kyle/buffer-custom-drop

Conversation

@kylebarron
Copy link
Copy Markdown
Owner

@kylebarron kylebarron commented Oct 14, 2024

Closes #230

This is a bit of a hacky implementation, but I'm not sure of another way to do this.

@3ok This seems to work for me, would you be interested in testing this branch?

@kylebarron
Copy link
Copy Markdown
Owner Author

I don't know of a great way to test this on CI, and I'd like to get this into a bug fix ASAP with #232, so I'll merge this. But open to more feedback on the best way to do this!

@kylebarron kylebarron merged commit f7b115f into main Oct 14, 2024
@kylebarron kylebarron deleted the kyle/buffer-custom-drop branch October 14, 2024 14:48
@3ok
Copy link
Copy Markdown
Contributor

3ok commented Oct 14, 2024

Thank you for looking into it. I will take a look at it later today. 🙂

@3ok
Copy link
Copy Markdown
Contributor

3ok commented Oct 14, 2024

Hi @kylebarron I have built against the latest changes in main and indeed I do not notice the issue anymore. 🥳

I'm not sure if that would work but I guess one way to test this is to have it run in a separate subprocess? We can take inspiration from pyarrow's test suite on handling this.

I can take a look at it.

@kylebarron
Copy link
Copy Markdown
Owner Author

If you're able to put up a PR with a test, that would be greatly appreciated!

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.

Segmentation Fault after passing numpy-backed arro3.core.Array to pyarrow.Array at Interpreter Exit

2 participants