Skip to content

Commit

Permalink
pythongh-116851: Remove "from ctypes import *" from a ctypes example (p…
Browse files Browse the repository at this point in the history
…ythonGH-116852)

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]>
  • Loading branch information
jnchen authored and miss-islington committed Mar 16, 2024
1 parent 04e6146 commit 5c039a2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Doc/library/ctypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c039a2

Please sign in to comment.