8000 [3.11] gh-116851: Remove "from ctypes import *" from a ctypes example… · python/cpython@fb66087 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb66087

Browse files
[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 744c077) Co-authored-by: jnchen <caojingchen@live.com>
1 parent 02497b7 commit fb66087

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Doc/library/ctypes.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ Accessing functions from loaded dlls
9292

9393
Functions are accessed as attributes of dll objects::
9494

95-
>>> from ctypes import *
9695
>>> libc.printf
9796
<_FuncPtr object at 0x...>
9897
>>> print(windll.kernel32.GetModuleHandleA) # doctest: +WINDOWS

0 commit comments

Comments
 (0)
0