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.
This commit is contained in:
jnchen 2024-03-16 21:01:45 +08:00 committed by GitHub
parent 33da0e844c
commit 744c077795
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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