ctypes docs: Fix array-length reference to "non-negative" from "positive" (GH-32097) (GH-32142)

https://github.com/python/cpython/commit/11408ff47e7b05b7979f7c5fa2956731296... commit: 11408ff47e7b05b7979f7c5fa29567312960a16e branch: 3.10 author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> committer: JelleZijlstra <jelle.zijlstra@gmail.com> date: 2022-03-28T19:47:57-07:00 summary: ctypes docs: Fix array-length reference to "non-negative" from "positive" (GH-32097) (GH-32142) (cherry picked from commit 76f14b0463dc2c53911eaf95e85374e511ba9bcc) Co-authored-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> files: M Doc/library/ctypes.rst diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index c10e54f153243..7665f214916db 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
participants (1)
-
JelleZijlstra