[Zope] Best Class for Persistent, Ordered List
Florent Guillaume
fg@nuxeo.com
Sun, 28 Jul 2002 14:45:06 +0200
Chris McDonough <chrism@zope.com> wrote:
> OOSet preserves order.
[...]
> >>> set = OOSet()
> >>> set.insert(1)
> 1
> >>> set.insert(2)
> 1
> >>> set.insert(10)
> 1
> >>> set.insert(5)
> 1
> >>> set
> OOSet([1, 2, 5, 10])
> >>> set.keys()
> [1, 2, 5, 10]
Well, I would say that this conclusively proves that OOSet *does not*
preserve order :-)
Besides, given the name (set), I didn't expect it to.
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com