Skip to content

Commit 474c5d6

Browse files
jnchenvstinner
authored andcommitted
pythongh-116851: Remove "from ctypes import *" from a ctypes example (pythonGH-116852)
It is confusing, because libc is not imported from ctypes, but defined in previous examples, which already contain the import.
1 parent a71f637 commit 474c5d6

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
@@ -93,7 +93,6 @@ Accessing functions from loaded dlls
9393

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

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

0 commit comments

Comments
 (0)