From: Yonatan Goldschmidt Date: Mon, 28 Mar 2022 03:12:21 +0000 (-0500) Subject: ctypes docs: Fix array-length reference to "non-negative" from "positive" (GH-32097) X-Git-Tag: v3.11.0a7~118 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=76f14b0463dc2c53911eaf95e85374e511ba9bcc;p=thirdparty%2FPython%2Fcpython.git ctypes docs: Fix array-length reference to "non-negative" from "positive" (GH-32097) --- diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 6e147fc66eb1..dca4c74bab77 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -2512,7 +2512,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