This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jimjjewett
Recipients aronacher, georg.brandl, jimjjewett, pitrou, rhettinger
Date 2009-03-02.02:43:38
SpamBayes Score 0.008791295
Marked as misclassified No
Message-id <1235961821.41.0.314273225305.issue5397@psf.upfronthosting.co.za>
In-reply-to
Content
I would try to make it more explicit that updates do not reset the 
order, but deleting a item and re-inserting it *does*.  (So it isn't 
the first insertion of the key, it is the first that hasn't yet been 
followed by a deletion.)

Maybe change:

"""
When iterating over an ordered dictionary,
the items are returned in the order their keys were first added.
"""

to [removed "first", added longer explanation]

"""
When iterating over an ordered dictionary,
the items are returned in the order their keys were added.  (This 
implies that updating an item to a new value does not reset the order, 
but deleting the item and re-inserting it moves the item to the end.)
"""
History
Date User Action Args
2009-03-02 02:43:41jimjjewettsetrecipients: + jimjjewett, georg.brandl, rhettinger, pitrou, aronacher
2009-03-02 02:43:41jimjjewettsetmessageid: <1235961821.41.0.314273225305.issue5397@psf.upfronthosting.co.za>
2009-03-02 02:43:39jimjjewettlinkissue5397 messages
2009-03-02 02:43:38jimjjewettcreate