-
Notifications
You must be signed in to change notification settings - Fork 52
API: Specify that DLPack should use BufferError #498
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
Conversation
I would actually like MUST, but since most implementations currently don't actually give a ``BufferError``, writing it as SHOULD instead. First part of closing numpy/numpy#20742
@seberg I assume that this recommendation does not fix the namespace for the actual exception object, right? |
|
While DLPack is a buffer conceptually, it is not the buffer as in Here is what I had in my POC:
|
Because then we have to create a new class and put it somewhere? The standard bails on defining most errors, but having a BufferError seems decent for that, it signals the same thing as it does for the Python buffer interface: Export is not possible as requested. And it seems exceedingly unlikely that |
Based on 11/3/2022 meeting, we are good moving forward with this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seberg Removed a duplicated word. Otherwise, LGTM.
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
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
This has received two approvals and was discussed in workgroup meetings. Will merge. |
I would actually like MUST, but since most implementations currently don't actually give a
BufferError
, writing it as SHOULD instead.First part of closing numpy/numpy#20742