Skip to content

Commit f51a052

Browse files
Update documentation.
1 parent 960e817 commit f51a052

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

Doc/c-api/arg.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ is out of range for the C type.
244244
For unsigned integer formats, the
245245
most significant bits are silently truncated when the receiving field is too
246246
small to receive the value, and :exc:`DeprecationWarning` is emitted when
247-
the value is larger than the maximal value for the corresponding C type or less than the
248-
minimal value for the corresponding signed integer type.
247+
the value is larger than the maximal value for the C type or less than
248+
the minimal value for the corresponding signed integer type of the same size.
249249

250250
``b`` (:class:`int`) [unsigned char]
251251
Convert a nonnegative Python integer to an unsigned tiny integer, stored in a C
@@ -313,8 +313,8 @@ minimal value for the corresponding signed integer type.
313313

314314
For unsigned integer formats ``B``, ``H``, ``I``, ``k`` and ``K``,
315315
:exc:`DeprecationWarning` is emitted when the value is larger than
316-
the maximal value for the corresponding C type or less than the minimal value for
317-
the corresponding signed integer type.
316+
the maximal value for the C type or less than the minimal value for
317+
the corresponding signed integer type of the same size.
318318

319319

320320
Other objects

Doc/whatsnew/3.15.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,9 @@ Deprecated C APIs
216216
-----------------
217217

218218
* For unsigned integer formats in :c:func:`PyArg_ParseTuple`,
219-
accepting Python integers with value that is larger than
220-
the maximal value the corresponding C type or less than
221-
the minimal value for the corresponding signed integer type
222-
is now deprecated.
219+
accepting Python integers with value that is larger than the maximal value
220+
for the C type or less than the minimal value for the corresponding
221+
signed integer type of the same size is now deprecated.
223222
(Contributed by Serhiy Storchaka in :gh:`132629`.)
224223

225224
.. Add C API deprecations above alphabetically, not here at the end.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
For unsigned integer formats in :c:func:`PyArg_ParseTuple`, accepting Python
2-
integers with value that is larger than the maximal value for the corresponding
3-
C type or less than the minimal value for the corresponding signed integer
4-
type is now deprecated.
2+
integers with value that is larger than the maximal value for the C type or
3+
less than the minimal value for the corresponding signed integer type
4+
of the same size is now deprecated.

0 commit comments

Comments
 (0)