Changes between Version 12 and Version 13 of SortedDict


Ignore:
Timestamp:
Oct 28, 2015, 11:06:25 AM (9 years ago)
Author:
Alasdair Nicol
Comment:

Fixed link to code, and removed information about methods that don't exist

Legend:

Unmodified
Added
Removed
Modified
  • SortedDict

    v12 v13  
    44
    55One of Django's custom data structure classes[[br]]
    6 source: http://code.djangoproject.com/browser/django/trunk/django/utils/datastructures.py#L124
     6source: https://github.com/django/django/blob/1.8/django/utils/datastructures.py#L124
    77
    88A 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.
    179
    1810== Creating new SortedDict ==
Back to Top