diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-03-16 13:10:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-16 13:10:10 (GMT) |
commit | 216b0229227b4b0cf3ca9871b0e3d137d559b5ab (patch) | |
tree | 43879b58a73128bd4cd199d8822746c5fcefee17 | |
parent | 04e614663494b6b0fa7b24933fca7c8af3a5fa32 (diff) | |
download | cpython-216b0229227b4b0cf3ca9871b0e3d137d559b5ab.zip cpython-216b0229227b4b0cf3ca9871b0e3d137d559b5ab.tar.gz cpython-216b0229227b4b0cf3ca9871b0e3d137d559b5ab.tar.bz2 |
[3.12] gh-116851: Remove "from ctypes import *" from a ctypes example (GH-116852) (GH-116905)
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 <caojingchen@live.com>
-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 2d6f619..9482497 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 |