Django

Code

Ticket #6627 (closed: fixed)

Opened 5 months ago

Last modified 5 months ago

clear method of SortedDict doesn't update keyOrder

Reported by: samuel@descolada.com Assigned to: nobody
Milestone: Component: Uncategorized
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation:
Needs tests: Patch needs improvement:

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 = []

Attachments

Change History

02/21/08 15:27:45 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #6627 (clear method of SortedDict doesn't update keyOrder)




Change Properties
Action