From: jnchen Date: Sat, 16 Mar 2024 13:01:45 +0000 (+0800) Subject: gh-116851: Remove "from ctypes import *" from a ctypes example (GH-116852) X-Git-Tag: v3.13.0a6~283 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=744c0777952f1e535d1192ee15b286aa67b61533;p=thirdparty%2FPython%2Fcpython.git gh-116851: Remove "from ctypes import *" from a ctypes example (GH-116852) It is confusing, because libc is not imported from ctypes, but defined in previous examples, which already contain the import. --- diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index eed18201e3ed..36976470b5a4 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -93,7 +93,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