Changes between Version 1 and Version 2 of SortedDict
- Timestamp:
- Oct 14, 2007, 1:07:44 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SortedDict
v1 v2 1 http://code.djangoproject.com/browser/django/trunk/django/utils/datastructures.py 1 = !SortedDict = 2 One of Django's custom data structure classes[[br]] 3 source:django/trunk/django/utils/datastructures.py 2 4 3 5 A dictionary that keeps its keys in the order in which they're inserted. 4 6 5 insert(index, key, value) 7 Supports the following extra methods: 8 9 `insert(index, key, value)`[[br]] 6 10 Inserts the key, value pair before the item with the given index." 7 11 8 value_for_index(index) 12 `value_for_index(index)`[[br]] 9 13 Returns the value of the item at the given zero-based index.