diff options
author | Antoine <43954001+awecx@users.noreply.github.com> | 2019-12-29 23:14:22 +0100 |
---|---|---|
committer | Pablo Galindo <Pablogsal@gmail.com> | 2019-12-29 22:14:22 +0000 |
commit | 32a12aed6da41f49a5ca05e6de34f5f93ea1dc33 (patch) | |
tree | 44febbcd84ba83cf9abf152b4876ea9303c8a663 | |
parent | 8f0703ff92ed2d9ccd52d7e083c7bc26e732a428 (diff) | |
download | cpython-git-32a12aed6da41f49a5ca05e6de34f5f93ea1dc33.tar.gz |
Fix typos and remove deprecated deprecation warning. (GH-17741)
-rw-r--r-- | Doc/library/ctypes.rst | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index e0bc28f5e5..2d6c6d0a1c 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -161,13 +161,6 @@ as the ``NULL`` pointer):: 0x1d000000 >>> -.. note:: - - :mod:`ctypes` may raise a :exc:`ValueError` after calling the function, if - it detects that an invalid number of arguments were passed. This behavior - should not be relied upon. It is deprecated in 3.6.2, and will be removed - in 3.7. - :exc:`ValueError` is raised when you call an ``stdcall`` function with the ``cdecl`` calling convention, or vice versa:: @@ -624,7 +617,7 @@ Structure/union alignment and byte order ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ By default, Structure and Union fields are aligned in the same way the C -compiler does it. It is possible to override this behavior be specifying a +compiler does it. It is possible to override this behavior by specifying a :attr:`_pack_` class attribute in the subclass definition. This must be set to a positive integer and specifies the maximum alignment for the fields. This is what ``#pragma pack(n)`` also does in MSVC. @@ -922,7 +915,7 @@ attribute later, after the class statement:: ... ("next", POINTER(cell))] >>> -Lets try it. We create two instances of ``cell``, and let them point to each +Let's try it. We create two instances of ``cell``, and let them point to each other, and finally follow the pointer chain a few times:: >>> c1 = cell() @@ -1125,8 +1118,8 @@ hit the ``NULL`` entry:: >>> The fact that standard Python has a frozen module and a frozen package -(indicated by the negative size member) is not well known, it is only used for -testing. Try it out with ``import __hello__`` for example. +(indicated by the negative ``size`` member) is not well known, it is only used +for testing. Try it out with ``import __hello__`` for example. .. _ctypes-surprises: |