-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-136769: Update Fundamental data types table in ctypes.rst #136784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-136769: Update Fundamental data types table in ctypes.rst #136784
Conversation
@AA-Turner, Could you please have a look? #EuroPython2025 |
Thanks @SZeltaat for the PR, and @AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
… types table (pythonGH-136784) Fixed-sized types, like ``c_int32``, are currently missing from the fundamental data types table in the ``ctypes`` documentation. This commit adds them, and notes that ``c_[u]int8`` is an alias of ``c_[u]byte``. (cherry picked from commit acefb97) Co-authored-by: Sina Zel taat <111974143+SZeltaat@users.noreply.github.com>
… types table (pythonGH-136784) Fixed-sized types, like ``c_int32``, are currently missing from the fundamental data types table in the ``ctypes`` documentation. This commit adds them, and notes that ``c_[u]int8`` is an alias of ``c_[u]byte``. (cherry picked from commit acefb97) Co-authored-by: Sina Zel taat <111974143+SZeltaat@users.noreply.github.com>
GH-136785 is a backport of this pull request to the 3.14 branch. |
GH-136786 is a backport of this pull request to the 3.13 branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Minor nit: using :c:expr:
vs :c:type
. I think we should choose something one
PS: a direct link: https://cpython-previews--136784.org.readthedocs.build/en/136784/library/ctypes.html#fundamental-data-types
…a types table (GH-136784) (#136786) gh-136769: Include fixed-width integers in the fundamental data types table (GH-136784) Fixed-sized types, like ``c_int32``, are currently missing from the fundamental data types table in the ``ctypes`` documentation. This commit adds them, and notes that ``c_[u]int8`` is an alias of ``c_[u]byte``. (cherry picked from commit acefb97) Co-authored-by: Sina Zel taat <111974143+SZeltaat@users.noreply.github.com>
…a types table (GH-136784) (#136785) gh-136769: Include fixed-width integers in the fundamental data types table (GH-136784) Fixed-sized types, like ``c_int32``, are currently missing from the fundamental data types table in the ``ctypes`` documentation. This commit adds them, and notes that ``c_[u]int8`` is an alias of ``c_[u]byte``. (cherry picked from commit acefb97) Co-authored-by: Sina Zel taat <111974143+SZeltaat@users.noreply.github.com>
Fixed-sized types, like c_int32 is currently missing from Fundamental data types in the documentation for c types.
This PR adds those types to the table.
Also:
c_int8 and c_unit8 are aliases of c_byte and c_ubyte. The documentation says "Usually as alias for c_byte/c_ubyte", but that can be more explicit. This PR includes this change as well.
📚 Documentation preview 📚: https://cpython-previews--136784.org.readthedocs.build/