minideblib.OrderedDict
index
minideblib/OrderedDict.py

OrderedDict.py
#
# This class functions almost exactly like UserDict.  However, when using
# the sequence methods, it returns items in the same order in which they
# were added, instead of some random order.
#
# Copyright 2001 Adam Heath <doogie@debian.org>
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

 
Classes
       
UserDict.UserDict
OrderedDict

 
class OrderedDict(UserDict.UserDict)
     Methods defined here:
__cmp__(self, dict)
__delitem__(self, key)
__init__(self, dict=None)
__setitem__(self, key, value)
clear(self)
copy(self)
items(self)
keys(self)
update(self, dict)
values(self)

Methods inherited from UserDict.UserDict:
__contains__(self, key)
__getitem__(self, key)
__len__(self)
__repr__(self)
get(self, key, failobj=None)
has_key(self, key)
iteritems(self)
iterkeys(self)
itervalues(self)
pop(self, key, *args)
popitem(self)
setdefault(self, key, failobj=None)

Class methods inherited from UserDict.UserDict:
fromkeys(cls, iterable, value=None) from __builtin__.classobj