@@ -161,13 +161,6 @@ as the ``NULL`` pointer)::
161
161
0x1d000000
162
162
>>>
163
163
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
-
171
164
:exc: `ValueError ` is raised when you call an ``stdcall `` function with the
172
165
``cdecl `` calling convention, or vice versa::
173
166
@@ -624,7 +617,7 @@ Structure/union alignment and byte order
624
617
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
625
618
626
619
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
628
621
:attr: `_pack_ ` class attribute in the subclass definition. This must be set to a
629
622
positive integer and specifies the maximum alignment for the fields. This is
630
623
what ``#pragma pack(n) `` also does in MSVC.
@@ -922,7 +915,7 @@ attribute later, after the class statement::
922
915
... ("next", POINTER(cell))]
923
916
>>>
924
917
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
926
919
other, and finally follow the pointer chain a few times::
927
920
928
921
>>> c1 = cell()
@@ -1125,8 +1118,8 @@ hit the ``NULL`` entry::
1125
1118
>>>
1126
1119
1127
1120
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.
1130
1123
1131
1124
1132
1125
.. _ctypes-surprises :
0 commit comments