Author story645
Recipients docs@python, story645
Date 2016-07-18.01:25:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468805116.02.0.14575319212.issue27544@psf.upfronthosting.co.za>
In-reply-to
Content
While there is documentation that dict.keys(), dict.values(), and dict.items() are now view objects(https://docs.python.org/3/library/stdtypes.html#dict-views), there's no mention dictviews, dict_keys, dict_values, and dict_items not being built-ins. This is confusing because type(dict.keys()) returns dict_keys, type(dict.values()) returns dict_values, etc., and the documentation uses `dictview` as the object signature, and so it's unclear how to do object introspection on dictview objects. 

The #python-dev channel suggested that the canonical way to do the object introspection is to use the collections.abc.mapview types; the documentation for dicts should reflect this (and that dictview and the rest are not __builtin__ types/in the python namspace).
History
Date User Action Args
2016-07-18 01:25:16story645setrecipients: + story645, docs@python
2016-07-18 01:25:16story645setmessageid: <1468805116.02.0.14575319212.issue27544@psf.upfronthosting.co.za>
2016-07-18 01:25:15story645linkissue27544 messages
2016-07-18 01:25:14story645create