mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
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:
parent
33da0e844c
commit
744c077795
1 changed files with 0 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue