RE: Sorted List
From: Delaney, Timothy C (Timothy) (tdelaney_at_avaya.com)
Date: 07/27/04
- Next message: Skip Montanaro: "Re: Q: distutils - name clash protection?"
- Previous message: Ron Stephens: "Re: VB(ish) replacement"
- Next in thread: Christopher T King: "RE: Sorted List"
- Reply: Christopher T King: "RE: Sorted List"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 27 Jul 2004 10:01:23 +1000 To: <python-list@python.org>
Dan wrote:
> I like the sets type in python 2.4 but it has one major limitation,
> it is an unordered collection.
>
> I needed a container more like a list, but sorted so that searches
> are fast and ensure elements are in a specifc order. This is very
> useful for 'fuzzy logic' type searching. I could not find any
> container in Python that fits this criteria, nor could I find one in
> the vault so I created SortedList.
Check the 'heapq' standard library module.
> What should I do with it when I'm done? Is there a place for
> Pythoniers to share code?
Python Cookbook: http://aspn.activestate.com/ASPN/Cookbook/Python/
Tim Delaney
- Next message: Skip Montanaro: "Re: Q: distutils - name clash protection?"
- Previous message: Ron Stephens: "Re: VB(ish) replacement"
- Next in thread: Christopher T King: "RE: Sorted List"
- Reply: Christopher T King: "RE: Sorted List"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|