Opened 11 years ago

Closed 11 years ago

#6627 closed (fixed)

clear method of SortedDict doesn't update keyOrder

Reported by: samuel@… Owned by: nobody
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Calling the "clear" method of SortedDict doesn't clear the keyOrder list. Quick fix though:

def clear(self):
    super(SortedDict, self).clear()
    self.keyOrder = []

Change History (1)

comment:1 Changed 11 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(In [7140]) Fixed #6627 -- Made dict.clear() work for SortedDicts.

Note: See TracTickets for help on using tickets.
Back to Top