Message183165
| Author |
rhettinger |
| Recipients |
Ramchandra Apte, eric.snow, pitrou, rhettinger, serhiy.storchaka |
| Date |
2013年02月27日.17:24:23 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1361985863.59.0.0902969530777.issue17100@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|