Message223085
Closing this. The premise is flawed. Guido designed mapping views to be a pass-through to the underlying mapping. As such, they would only have sequence behavior if the underlying mapping had sequence behavior.
The implementation of both regular dicts and OrderedDicts don't support reasonable ways to index by position. Guido essentially decided on the current behavior this when he decided to do away the Python's dict.items() being a list and replacing it with a mapping view. See PEP 3016 for his rationale and the related discussion. |
|
Date |
User |
Action |
Args |
2014-07-15 04:28:01 | rhettinger | set | recipients:
+ rhettinger, cool-RR |
2014-07-15 04:28:01 | rhettinger | set | messageid: <1405398481.02.0.397787384853.issue21978@psf.upfronthosting.co.za> |
2014-07-15 04:28:00 | rhettinger | link | issue21978 messages |
2014-07-15 04:28:00 | rhettinger | create | |
|