API: Specify that DLPack should use BufferError#498
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. |
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