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.

classification
Title: C API dictionary views type checkers are not documented
Type: enhancement Stage:
Components: C API, Documentation Versions: Python 3.9, Python 3.8, Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: christian.heimes, docs@python, salty-horse, serhiy.storchaka
Priority: normal Keywords:

Created on 2019-01-25 12:05 by salty-horse, last changed 2022-04-11 14:59 by admin.

Messages (2)
msg334355 - (view) Author: Ori Avtalion (salty-horse) * Date: 2019-01-25 12:05
dictobject.h defines several helpers to ease checking of dictionary view types. If they are meant to be part of the API, they should be documented.

PyDictKeys_Check
PyDictItems_Check
PyDictValues_Check
PyDictViewSet_Check

Should they be added to dict.rst, or a separate file?
msg358182 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2019-12-10 11:21
They were added in a22e8bdfd92cd4f1bc3d60e91df6410c4efde6a0. Additional types like PyDictRevIterKey_Type were added later. I am not sure that all these types should be exposed in the public C API.
History
Date User Action Args
2022-04-11 14:59:10adminsetgithub: 80008
2019-12-10 11:21:51serhiy.storchakasetnosy: + serhiy.storchaka, christian.heimes

messages: + msg358182
versions: + Python 3.7, Python 3.8, Python 3.9, - Python 3.6
2019-12-09 16:13:33vstinnersetcomponents: + C API
2019-01-25 12:05:04salty-horsecreate