Does the C-API include C structs not explicitly documented?

Hi everyone,
Are C structs part of the C-API if the struct is only included in a header, but not documented?
I have always assumed not, but it isn't clear.
This question arose in https://github.com/python/cpython/pull/24298
Obviously, any structs listed in https://docs.python.org/3/c-api/structures.html are part of the API
Thoughts?
Cheers, Mark.

Unfortunately the public headers act as de-facto documentation.
On Wed, Jan 27, 2021 at 8:10 AM Mark Shannon mark@hotpy.org wrote:
Hi everyone,
Are C structs part of the C-API if the struct is only included in a header, but not documented?
I have always assumed not, but it isn't clear.
This question arose in https://github.com/python/cpython/pull/24298
Obviously, any structs listed in https://docs.python.org/3/c-api/structures.html are part of the API
Thoughts?
Cheers, Mark. _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-leave@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/S45H4YOO... Code of Conduct: http://python.org/psf/codeofconduct/
participants (2)
-
Guido van Rossum
-
Mark Shannon