Message197813
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. |
|
Date |
User |
Action |
Args |
2013-09-15 19:02:40 | techtonik | set | recipients:
+ techtonik, rhettinger |
2013-09-15 19:02:40 | techtonik | link | issue19026 messages |
2013-09-15 19:02:39 | techtonik | create | |
|