Changes between Version 12 and Version 13 of SortedDict
- Timestamp:
- Oct 28, 2015, 11:06:25 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SortedDict
v12 v13 4 4 5 5 One of Django's custom data structure classes[[br]] 6 source: http ://code.djangoproject.com/browser/django/trunk/django/utils/datastructures.py#L1246 source: https://github.com/django/django/blob/1.8/django/utils/datastructures.py#L124 7 7 8 8 A dictionary that keeps its keys in the order in which they're inserted. 9 10 Supports the following extra methods:11 12 `insert(index, key, value)`[[br]]13 Inserts the key, value pair before the item with the given index."14 15 `value_for_index(index)`[[br]]16 Returns the value of the item at the given zero-based index.17 9 18 10 == Creating new SortedDict ==