From: Stéphane Wirtel Date: Wed, 15 May 2019 15:53:25 +0000 (+0200) Subject: [3.7] bpo-36799: Fix typo in ctypes.rst (GH-13104) (GH-13341) X-Git-Tag: v3.7.4rc1~146 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4fd7f56ee78a07ebadf034affc2e36db14c85c00;p=thirdparty%2FPython%2Fcpython.git [3.7] bpo-36799: Fix typo in ctypes.rst (GH-13104) (GH-13341) (cherry picked from commit 133fc89ca) Co-authored-by: Yavor Konstantinov <7553015+sehnsucht13@users.noreply.github.com> --- diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 500aad8858f2..60a2ec1c5e89 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -2365,7 +2365,7 @@ other data types containing pointer type fields. and so on). Later assignments to the :attr:`_fields_` class variable will raise an AttributeError. - It is possible to defined sub-subclasses of structure types, they inherit + It is possible to define sub-subclasses of structure types, they inherit the fields of the base class plus the :attr:`_fields_` defined in the sub-subclass, if any. @@ -2413,7 +2413,7 @@ other data types containing pointer type fields. td.lptdesc = POINTER(some_type) td.u.lptdesc = POINTER(some_type) - It is possible to defined sub-subclasses of structures, they inherit the + It is possible to define sub-subclasses of structures, they inherit the fields of the base class. If the subclass definition has a separate :attr:`_fields_` variable, the fields specified in this are appended to the fields of the base class.