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 techtonik
Recipients techtonik
Date 2013-09-15.16:46:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379263563.34.0.887004049034.issue19026@psf.upfronthosting.co.za>
In-reply-to
Content
http://stackoverflow.com/questions/15733558/python-ordereddict-not-keeping-element-order

I wonder why OrderedDict accepts dict as parameter in a first place? OD is used when order is important and if plain dict is supplied, the order is lost.

    >>> d = {3:4, 1:2}
    >>> OD(d)
    OrderedDict([(1, 2), (3, 4)])

OrderedDict should not accept dict as parameter.
History
Date User Action Args
2013-09-15 16:46:03techtoniksetrecipients: + techtonik
2013-09-15 16:46:03techtoniksetmessageid: <1379263563.34.0.887004049034.issue19026@psf.upfronthosting.co.za>
2013-09-15 16:46:03techtoniklinkissue19026 messages
2013-09-15 16:46:03techtonikcreate