Skip to content

API: Always use BufferError when dlpack export fails#22542

Merged
charris merged 1 commit intonumpy:mainfrom
seberg:dlpack-buffererror
Nov 7, 2022
Merged

API: Always use BufferError when dlpack export fails#22542
charris merged 1 commit intonumpy:mainfrom
seberg:dlpack-buffererror

Conversation

@seberg
Copy link
Copy Markdown
Member

@seberg seberg commented Nov 7, 2022

See also data-apis/array-api#498.

I think we should just change this. It is a niche feature and just an error type change.

Closes gh-20742

See also data-apis/array-api#498.

I think we should just change this.  It is a niche feature and just
an error type change.

Closes numpygh-20742
@seberg seberg force-pushed the dlpack-buffererror branch from 3d1a15e to 26342d7 Compare November 7, 2022 17:04
@charris charris merged commit 9399106 into numpy:main Nov 7, 2022
@charris
Copy link
Copy Markdown
Member

charris commented Nov 7, 2022

Thanks Sebastian.

@seberg seberg deleted the dlpack-buffererror branch November 8, 2022 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: DLPack cannot export readonly buffers and raises wrong exception

2 participants