Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #15303

Re: Dictionary sorting

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ckaynor@zindagigames.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.045
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'behave': 0.07; 'python': 0.08; 'recipe': 0.09; 'library': 0.14; 'great!': 0.16; 'recipes': 0.16; 'thanks,': 0.18; 'wrote:': 0.18; '2.4': 0.23; 'header:In- Reply-To:1': 0.23; 'received:74.125.82.174': 0.24; 'received:mail- wy0-f174.google.com': 0.24; 'url:mailman': 0.27; 'message- id:@mail.gmail.com': 0.29; 'class': 0.29; 'module': 0.30; 'collections': 0.30; 'chris': 0.30; 'url:library': 0.30; 'nov': 0.31; 'pm,': 0.31; 'version': 0.31; 'thu,': 0.32; 'url:listinfo': 0.32; 'to:addr:python-list': 0.32; 'there': 0.33; 'url:python': 0.35; 'received:74.125.82': 0.37; 'using': 0.37; 'received:google.com': 0.38; 'url:org': 0.38; 'url:docs': 0.38; 'received:74.125': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'john': 0.62; '2011': 0.62; 'free': 0.63; 'desire.': 0.84; 'online,': 0.85; 'ware': 0.91
MIME-Version 1.0
In-Reply-To <9836933.743.1320346827670.JavaMail.geo-discussion-forums@yqbl36>
References <16245908.783.1320346014867.JavaMail.geo-discussion-forums@yqhd1> <j8uo6n$gu6$1@reader1.panix.com> <9836933.743.1320346827670.JavaMail.geo-discussion-forums@yqbl36>
From Chris Kaynor <ckaynor@zindagigames.com>
Date Thu, 3 Nov 2011 12:13:46 -0700
Subject Re: Dictionary sorting
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2411.1320347649.27778.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1320347649 news.xs4all.nl 6988 [2001:888:2000:d::a6]:58674
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:15303

Show key headers only | View raw


Note that there are a number of recipes available for free online, and
if you are using a newer version of Python (2.7 or higher), the
collections module includes an OrderedDict class
(http://docs.python.org/library/collections.html#collections.OrderedDict
- this also include a library for Python 2.4 and higher as well). Note
that there are a lot of different possible behaviors, so any
particular recipe may or may not behave exactly as you desire.

Chris



On Thu, Nov 3, 2011 at 12:00 PM, Scott Ware <scottdware@gmail.com> wrote:
> Great! Thanks, John for the quick response!
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Dictionary sorting Scott Ware <scottdware@gmail.com> - 2011-11-03 11:46 -0700
  Re: Dictionary sorting John Gordon <gordon@panix.com> - 2011-11-03 18:57 +0000
    Re: Dictionary sorting Scott Ware <scottdware@gmail.com> - 2011-11-03 12:00 -0700
      Re: Dictionary sorting Chris Kaynor <ckaynor@zindagigames.com> - 2011-11-03 12:13 -0700
  Re: Dictionary sorting insomnia@gmail.com - 2011-11-03 13:01 -0700
  Re: Dictionary sorting Terry Reedy <tjreedy@udel.edu> - 2011-11-03 17:36 -0400
  Re: Dictionary sorting Tim Chase <python.list@tim.thechases.com> - 2011-11-03 18:01 -0500
    Re: Dictionary sorting Ben Finney <ben+python@benfinney.id.au> - 2011-11-04 11:06 +1100
      Re: Dictionary sorting Hrvoje Niksic <hniksic@xemacs.org> - 2011-11-04 11:20 +0100
        Re: Dictionary sorting Ben Finney <ben+python@benfinney.id.au> - 2011-11-04 23:19 +1100
  Re: Dictionary sorting Chris Angelico <rosuav@gmail.com> - 2011-11-04 10:59 +1100

csiph-web