Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Ordered Dictionary 0.2.2
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
fuzzy...@voidspace.org.uk  
View profile  
 More options Nov 28 2006, 4:58 pm
From: fuzzy...@voidspace.org.uk
Date: Tue, 28 Nov 2006 21:58:53 +0000
Local: Tues, Nov 28 2006 4:58 pm
Subject: Ordered Dictionary 0.2.2

{ran_emo} After a break of almost a year there has been an update to `odict the Ordered Dictionary <http://www.voidspace.org.uk/python/odict.html>`_.

The latest version is 0.2.2, with changes implemented by Nicola Larosa.

Despite over 700 downloads since May (plus 1300 as part of `pythonutils <http://www.voidspace.org.uk/python/pythonutils.html>`_) there have been no bug reports, only improvements [#]_. {sm;:-)}

.. raw::html

    {title;What is odict?}

**odict** is a pure Python implementation of an ordered dictionary. It keeps keys in insertion order and allows you to change the order. Methods (including iteration) that would return members in an arbitrary order are now ordered.

There is also the `SequenceOrderedDict <http://www.voidspace.org.uk/python/odict.html#sequenceordereddict>`_ that behaves like a sequence as well as a dictionary. It allows slicing and the keys, values and items methods are special sequence objects (which are also callable and so behave as methods too).

.. raw::html

    {title;Code}

Removed the TODO and CHANGELOG sections in the tail docstring (they are in the docs anyway).

Disabled warnings during tests.

Explicitly disabled tests execution on Python v.2.2 . In addition to the slicing tests, other ones are failing.

Removed code duplication between the ``__init__`` and the ``update`` methods.

Misc. cleanup.

Also, based on code from `Tim Wegener`_:

- added the ``rename`` method;
- removed a ``has_key`` usage in the ``__setitem__`` method.

.. raw::html

    {title;Documentation}

Moved the ISSUES chapter from code's tail docstring to here.

Moved up the `Creating an Ordered Dictionary <http://www.voidspace.org.uk/python/odict.html#creating-an-ordered-dic...>`_ chapter.

Added prompts to the code examples and removed the superfluous print statements (sometimes they were there, sometimes they were not).

Misc. cleanup.

.. [#] So either no-one is using it, or it's really good...

.. _Tim Wegener: twege...@radlogic.com.au

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.19/555 - Release Date: 27/11/2006


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »