summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorjnchen <caojingchen@live.com>2024-03-16 13:01:45 (GMT)
committerGitHub <noreply@github.com>2024-03-16 13:01:45 (GMT)
commit744c0777952f1e535d1192ee15b286aa67b61533 (patch)
treedd9275a05ac2d1d6ce9ffa6031c787d257cbcbe6 /Doc
parent33da0e844c922b3dcded75fbb9b7be67cb013a17 (diff)
downloadcpython-744c0777952f1e535d1192ee15b286aa67b61533.zip
cpython-744c0777952f1e535d1192ee15b286aa67b61533.tar.gz
cpython-744c0777952f1e535d1192ee15b286aa67b61533.tar.bz2
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.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/ctypes.rst1
1 files changed, 0 insertions, 1 deletions
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index eed1820..3697647 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