Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32a12ae

Browse files
awecxpablogsal
authored andcommitted
Fix typos and remove deprecated deprecation warning. (GH-17741)
1 parent 8f0703f commit 32a12ae

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

Doc/library/ctypes.rst

+4-11
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,6 @@ as the ``NULL`` pointer)::
161161
0x1d000000
162162
>>>
163163

164-
.. note::
165-
166-
:mod:`ctypes` may raise a :exc:`ValueError` after calling the function, if
167-
it detects that an invalid number of arguments were passed. This behavior
168-
should not be relied upon. It is deprecated in 3.6.2, and will be removed
169-
in 3.7.
170-
171164
:exc:`ValueError` is raised when you call an ``stdcall`` function with the
172165
``cdecl`` calling convention, or vice versa::
173166

@@ -624,7 +617,7 @@ Structure/union alignment and byte order
624617
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
625618

626619
By default, Structure and Union fields are aligned in the same way the C
627-
compiler does it. It is possible to override this behavior be specifying a
620+
compiler does it. It is possible to override this behavior by specifying a
628621
:attr:`_pack_` class attribute in the subclass definition. This must be set to a
629622
positive integer and specifies the maximum alignment for the fields. This is
630623
what ``#pragma pack(n)`` also does in MSVC.
@@ -922,7 +915,7 @@ attribute later, after the class statement::
922915
... ("next", POINTER(cell))]
923916
>>>
924917

925-
Lets try it. We create two instances of ``cell``, and let them point to each
918+
Let's try it. We create two instances of ``cell``, and let them point to each
926919
other, and finally follow the pointer chain a few times::
927920

928921
>>> c1 = cell()
@@ -1125,8 +1118,8 @@ hit the ``NULL`` entry::
11251118
>>>
11261119

11271120
The fact that standard Python has a frozen module and a frozen package
1128-
(indicated by the negative size member) is not well known, it is only used for
1129-
testing. Try it out with ``import __hello__`` for example.
1121+
(indicated by the negative ``size`` member) is not well known, it is only used
1122+
for testing. Try it out with ``import __hello__`` for example.
11301123

11311124

11321125
.. _ctypes-surprises:

0 commit comments

Comments
 (0)