This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients mark.dickinson, mrdiskodave
Date 2009-09-16.18:12:21
SpamBayes Score 5.220747e-05
Marked as misclassified No
Message-id <1253124744.31.0.893567805344.issue6921@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-09-16 18:12:24mark.dickinsonsetrecipients: + mark.dickinson, mrdiskodave
2009-09-16 18:12:24mark.dickinsonsetmessageid: <1253124744.31.0.893567805344.issue6921@psf.upfronthosting.co.za>
2009-09-16 18:12:21mark.dickinsonlinkissue6921 messages
2009-09-16 18:12:21mark.dickinsoncreate