Stefan Krah added the comment: I think it's just a matter of checking for self->index <= N in setstate(). ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue24620> _______________________________________