From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 16 Mar 2024 13:18:52 +0000 (+0100) Subject: [3.11] gh-116851: Remove "from ctypes import *" from a ctypes example (GH-116852... X-Git-Tag: v3.11.9~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb660871345bb62e33e1bc1547e9740bc7fb3b1f;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-116851: Remove "from ctypes import *" from a ctypes example (GH-116852) (GH-116906) It is confusing, because libc is not imported from ctypes, but defined in previous examples, which already contain the import. (cherry picked from commit 744c0777952f1e535d1192ee15b286aa67b61533) Co-authored-by: jnchen --- diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 0088775d2fd2..0b5cb541662e 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -92,7 +92,6 @@ Accessing functions from loaded dlls Functions are accessed as attributes of dll objects:: - >>> from ctypes import * >>> libc.printf <_FuncPtr object at 0x...> >>> print(windll.kernel32.GetModuleHandleA) # doctest: +WINDOWS