Serhiy Storchaka added the comment: I think the allocators must just return NULL, without setting the error. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue30695> _______________________________________