Message318295
I don't know how to reproduce a failure in tp_clear(). I just can't prove that it never fails. Maybe it is needed a bug in the implementation of the buffer protocol in third-party extension.
If it should not happen then we can just add
assert(!PyErr_Occurred());
or
if (PyErr_Occurred()) {
PyErr_WriteUnraisable(NULL);
}
It is better to crash in memoryview.c than in the garbage collector if this crash is caused by incorrect buffer protocol implementation. |
|
Date |
User |
Action |
Args |
2018-05-31 12:41:23 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, skrah |
2018-05-31 12:41:23 | serhiy.storchaka | set | messageid: <1527770483.65.0.682650639539.issue33713@psf.upfronthosting.co.za> |
2018-05-31 12:41:23 | serhiy.storchaka | link | issue33713 messages |
2018-05-31 12:41:23 | serhiy.storchaka | create | |
|