[issue6921] recursion wierdness ... related to variable scoping?
Mark Dickinson
report at bugs.python.org
Wed Sep 16 20:12:24 CEST 2009
Mark Dickinson <dickinsm at 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 <report at bugs.python.org>
<http://bugs.python.org/issue6921>
_______________________________________
More information about the Python-bugs-list
mailing list