Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 216b022

Browse files
[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 744c077) Co-authored-by: jnchen <[email protected]>
1 parent 04e6146 commit 216b022

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)