This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients pitrou, serhiy.storchaka, skrah
Date 2018-05-31.12:41:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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



    if (PyErr_Occurred()) {

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:23serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, skrah
2018-05-31 12:41:23serhiy.storchakasetmessageid: <>
2018-05-31 12:41:23serhiy.storchakalinkissue33713 messages
2018-05-31 12:41:23serhiy.storchakacreate