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 rhettinger, techtonik
Date 2013-09-15.19:02:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAPkN8xJU6GiEx7hN4bQyXt6Av0Hx4yec4aVSF4b7xJRRgY97vA@mail.gmail.com>
In-reply-to <1379269549.16.0.384035631498.issue19026@psf.upfronthosting.co.za>
Content
On Sun, Sep 15, 2013 at 9:25 PM, Raymond Hettinger
<report@bugs.python.org> wrote:
>
> In general, it is not possible for a hypothetical StrictOrderedDict to know whether its input was ordered or not.

Right. That's why it should not accept input that can only be
unordered (including dict and **kwargs) - this is what I mean by
strict mode.

> Remember, Armin's core concept for OrderedDict was "to remember the order that keys were added, the order is determined by whoever does the adding".

IMHO the statement "the order is determined by whoever does the
adding" is false in 9/10 cases of passed dict. In 9/10 cases whoever
supplies dict or **kwargs argument is unaware of what mistake he is
making, and how many hour she will spend discovering the issue.
History
Date User Action Args
2013-09-15 19:02:40techtoniksetrecipients: + techtonik, rhettinger
2013-09-15 19:02:40techtoniklinkissue19026 messages
2013-09-15 19:02:39techtonikcreate