diff options
| author | dirkf <fieldhouse@gmx.net> | 2025-11-03 20:45:53 +0000 |
|---|---|---|
| committer | dirkf <fieldhouse@gmx.net> | 2025-11-21 01:52:11 +0000 |
| commit | 5585d76da68931ca39b3edd137382bed78746251 (patch) | |
| tree | 8781d10a0afc3f8cd3c62fa75ab5fac9397374cc /test/test_utils.py | |
| parent | 931e15621cadbdeea4e16c533177d749f159b6e3 (diff) | |
[compat] Add `compat_dict`
A dict that preserves insertion order and otherwise resembles the
dict builtin (if it isn't it) rather than `collections.OrderedDict`.
Also:
* compat_builtins_dict: the built-in definition in case `compat_dict`
was imported as `dict`
* compat_dict_items: use instead of `dict.items` to get items from
a `compat_dict` in insertion order, if you didn't define `dict` as
`compat_dict`.
Diffstat (limited to 'test/test_utils.py')
0 files changed, 0 insertions, 0 deletions
