Mark Dickinson <dicki...@gmail.com> added the comment: This is almost certainly not a bug in Python. At a guess, in the outermost 'else' clause of your dump method, self.keys can be empty. Then the 'for p, k in enumerate(self.keys):' does zero iterations, so p is not defined in the assert; hence the error message.
If you want help figuring out exactly what's going wrong, I'd suggest asking on comp.lang.python. ---------- nosy: +marketdickinson resolution: -> invalid status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6921> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com