diff options
author | jnchen <caojingchen@live.com> | 2024-03-16 13:01:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-16 13:01:45 (GMT) |
commit | 744c0777952f1e535d1192ee15b286aa67b61533 (patch) | |
tree | dd9275a05ac2d1d6ce9ffa6031c787d257cbcbe6 /Doc | |
parent | 33da0e844c922b3dcded75fbb9b7be67cb013a17 (diff) | |
download | cpython-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.rst | 1 |
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 |