This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients cool-RR, rhettinger
Date 2014-07-15.04:28:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405398481.02.0.397787384853.issue21978@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-07-15 04:28:01rhettingersetrecipients: + rhettinger, cool-RR
2014-07-15 04:28:01rhettingersetmessageid: <1405398481.02.0.397787384853.issue21978@psf.upfronthosting.co.za>
2014-07-15 04:28:00rhettingerlinkissue21978 messages
2014-07-15 04:28:00rhettingercreate