mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 14:59:27 +00:00
```
str(OrderedDict([(1, "a"), (2, "b")]))
```
Old:
```
OrderedDict([(1, 'a'), (2, 'b')])
```
New:
```
OrderedDict({1: 'a', 2: 'b'})
```
See also: https://github.com/python/cpython/issues/101446
3.9 KiB
3.9 KiB