Message183165
My only attraction to adding any of the rotate variants is that they provide functionality that can't be done efficiently by a user without access to the underlying data structure.
However, looking only at the API, the methods seem a bit awkward and a bit at odds with how people think of ordered dicts (rotate is not a method that comes to mind for my mental model).
When I built the OD code, I looked at many existing implementations (in Python and other languages), and I don't recall seeing rotation in any of them.
In the absence of strong use cases, I prefer to keep the API thin so that OD's remain easy to learn and remember. |
|
Date |
User |
Action |
Args |
2013-02-27 17:24:23 | rhettinger | set | recipients:
+ rhettinger, pitrou, eric.snow, Ramchandra Apte, serhiy.storchaka |
2013-02-27 17:24:23 | rhettinger | set | messageid: <1361985863.59.0.0902969530777.issue17100@psf.upfronthosting.co.za> |
2013-02-27 17:24:23 | rhettinger | link | issue17100 messages |
2013-02-27 17:24:23 | rhettinger | create | |
|