Kaydet (Commit) d85a1e6b authored tarafından Berker Peksag's avatar Berker Peksag

Issue #16192: Clarify when c_int is an alias to c_long in ctypes documentation

üst a49ccf21
...@@ -20,11 +20,10 @@ Note: The code samples in this tutorial use :mod:`doctest` to make sure that ...@@ -20,11 +20,10 @@ Note: The code samples in this tutorial use :mod:`doctest` to make sure that
they actually work. Since some code samples behave differently under Linux, they actually work. Since some code samples behave differently under Linux,
Windows, or Mac OS X, they contain doctest directives in comments. Windows, or Mac OS X, they contain doctest directives in comments.
Note: Some code samples reference the ctypes :class:`c_int` type. This type is Note: Some code samples reference the ctypes :class:`c_int` type. On platforms
an alias for the :class:`c_long` type on 32-bit systems. So, you should not be where ``sizeof(long double) == sizeof(double)`` it is an alias to
confused if :class:`c_long` is printed if you would expect :class:`c_int` --- :class:`c_double`. So, you should not be confused if :class:`c_long` is
they are actually the same type. printed if you would expect :class:`c_int` --- they are actually the same type.
.. _ctypes-loading-dynamic-link-libraries: .. _ctypes-loading-dynamic-link-libraries:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment