From 1a14a8fd66be3c0d49811bcc1beca9fdfadf405e Mon Sep 17 00:00:00 2001 From: Yonatan Goldschmidt Date: Sun, 27 Mar 2022 22:12:21 -0500 Subject: [PATCH] ctypes docs: Fix array-length reference to "non-negative" from "positive" (GH-32097) (cherry picked from commit 76f14b0463dc2c53911eaf95e85374e511ba9bcc) Co-authored-by: Yonatan Goldschmidt --- Doc/library/ctypes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index c10e54f153243f..7665f214916db0 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -2513,7 +2513,7 @@ Arrays and pointers Abstract base class for arrays. The recommended way to create concrete array types is by multiplying any - :mod:`ctypes` data type with a positive integer. Alternatively, you can subclass + :mod:`ctypes` data type with a non-negative integer. Alternatively, you can subclass this type and define :attr:`_length_` and :attr:`_type_` class variables. Array elements can be read and written using standard subscript and slice accesses; for slice reads, the resulting object is