Opened 17 years ago

Closed 17 years ago

#6627 closed (fixed)

clear method of SortedDict doesn't update keyOrder

Reported by: samuel@… Owned by: nobody
Component: Uncategorized Version: dev
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

Description

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 by Malcolm Tredinnick, 17 years ago

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