[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 744c077795)

Co-authored-by: jnchen <caojingchen@live.com>
This commit is contained in:
Miss Islington (bot) 2024-03-16 14:18:52 +01:00 committed by GitHub
parent 02497b7ac2
commit fb66087134
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,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