Code

Changes between Version 1 and Version 2 of SortedDict


Ignore:
Timestamp:
10/14/07 11:07:44 (7 years ago)
Author:
James Wheare
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SortedDict

    v1 v2  
    1 http://code.djangoproject.com/browser/django/trunk/django/utils/datastructures.py 
     1= !SortedDict = 
     2One of Django's custom data structure classes[[br]] 
     3source:django/trunk/django/utils/datastructures.py 
    24 
    35A dictionary that keeps its keys in the order in which they're inserted. 
    46 
    5 insert(index, key, value) 
     7Supports the following extra methods: 
     8 
     9`insert(index, key, value)`[[br]] 
    610Inserts the key, value pair before the item with the given index." 
    711 
    8 value_for_index(index) 
     12`value_for_index(index)`[[br]] 
    913Returns the value of the item at the given zero-based index.