From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 20 Feb 2025 11:05:23 +0000 (+0100) Subject: [3.13] Fix some ctypes docs typos (GH-130307) (GH-130343) X-Git-Tag: v3.13.3~245 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=178b2ec81fa0b8e5802eabc65deaf39c62c0eaaa;p=thirdparty%2FPython%2Fcpython.git [3.13] Fix some ctypes docs typos (GH-130307) (GH-130343) Fix some ctypes docs typos (GH-130307) (cherry picked from commit 417372bd43ecb61a848eadb3ce142f0ed3441b49) Co-authored-by: Alcaro --- diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index f96cfeb5796c..c06cbc314b40 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -292,7 +292,7 @@ Since these types are mutable, their value can also be changed afterwards:: Assigning a new value to instances of the pointer types :class:`c_char_p`, :class:`c_wchar_p`, and :class:`c_void_p` changes the *memory location* they point to, *not the contents* of the memory block (of course not, because Python -bytes objects are immutable):: +string objects are immutable):: >>> s = "Hello, World" >>> c_s = c_wchar_p(s) @@ -671,7 +671,7 @@ This must be set to a positive integer and specifies the maximum alignment for t This is what ``#pragma pack(n)`` also does in MSVC. It is also possible to set a minimum alignment for how the subclass itself is packed in the same way ``#pragma align(n)`` works in MSVC. -This can be achieved by specifying a ::attr:`~Structure._align_` class attribute +This can be achieved by specifying a :attr:`~Structure._align_` class attribute in the subclass definition. :mod:`ctypes` uses the native byte order for Structures and Unions. To build