Serhiy Storchaka added the comment: May be just use PyObject_GetItem(self->data, idx)? ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue13583> _______________________________________