[Python-ideas] What would you call such an object (was: ordered dict) (original) (raw)

LD 'Gus' Landis ldlandis at gmail.com
Thu Apr 26 18:00:16 CEST 2007


Hi,

I am wondering if in y'alls opinion the following is "just a dictionary" or is it a different kind of object that has some of the characteristics of a dictionary, and has order.

If y'all think that it is "just a dictionary", then how does one override the notion of a "hash" for the key in a dictionary and make it some other ordered structure (e.g. a B-Tree, AVL, etc). (Please no flame toss to some other list -- this is a "use" of an ordered "ordered dict")

I don't know what such a critter would be called (in Python). It has the name of "array" language where it is central, but don't want to go into that.

The object has the following characteristics:

Cheers, --ldl

--

LD Landis - N0YRQ - de la tierra del encanto 3960 Schooner Loop, Las Cruces, NM 88012 651/340-4007 N32 21'48.28" W106 46'5.80" "If a thing is worth doing, it is worth doing badly." –GK Chesterton.

An interpretation: For things worth doing: Doing them, even if badly, is better than doing nothing perfectly (on them).



More information about the Python-ideas mailing list