Hey everyone. Quick sanity check: The ctypes docs <https://docs.python.org/3.10/library/ctypes.html#ctypes._CData> refer to _CData as a non-public class which is in the module, but _ctypes.c doesn't actually export it <https://github.com/python/cpython/blob/main/Modules/_ctypes/_ctypes.c#L5680>. (I discovered this because it turns out that typeshed *is* referencing _CData, e.g. in its type annotations for RawIOBase <https://github.com/python/typeshed/blob/master/stdlib/_typeshed/__init__.pyi#L190> )
Is this intended behavior in CPython (in which case the docs are a bit off and typeshed has a bug), or is it unexpected to people on this list (in which case it's an issue in _ctypes.c)? Yonatan
_______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/7L6DNNI3MJ4UIM3C7A7KAIWHX562MRZL/ Code of Conduct: http://python.org/psf/codeofconduct/
