sounds like a bug. add a ticket and/or create a patch ! thanks.
On Jun 2, 3:48 pm, Eric Ongerth [EMAIL PROTECTED] wrote:
I noticed that if you pop() an item out of an OrderedDict, then ask
the OrderedDict for its values(), you get a key error because the OD
doesn't trim its ._list when the
done and done: Ticket #585.
Patch reprinted here for the curious passerby:
def pop(self, key=None):
if key == None:
try:
key = self._list[0]
except IndexError:
raise IndexError('tried to pop() from an empty
OrderedDict')