diff options
author | Thomas Heller <theller@ctypes.org> | 2006-11-02 20:22:29 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2006-11-02 20:22:29 (GMT) |
commit | be1bc3b63a0a07af4b204519bb0decd9714ea8ba (patch) | |
tree | 371efef0637b9556d1a20ce8629c95b2fca23d2e /Doc | |
parent | b11472358fd91a57824e05a073314f8d5c99b42c (diff) | |
download | cpython-be1bc3b63a0a07af4b204519bb0decd9714ea8ba.zip cpython-be1bc3b63a0a07af4b204519bb0decd9714ea8ba.tar.gz cpython-be1bc3b63a0a07af4b204519bb0decd9714ea8ba.tar.bz2 |
Fix a code example by adding a missing import.
Fixes #1557890.
Will backport to release25-maint.
Diffstat (limited to 'Doc')
-rwxr-xr-x | Doc/lib/libctypes.tex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/libctypes.tex b/Doc/lib/libctypes.tex index 2bae25b..8474a44 100755 --- a/Doc/lib/libctypes.tex +++ b/Doc/lib/libctypes.tex @@ -1848,7 +1848,7 @@ GetWindowRect( Here is the wrapping with \code{ctypes}: \begin{quote} -\begin{verbatim}>>> from ctypes import POINTER, WINFUNCTYPE, windll +\begin{verbatim}>>> from ctypes import POINTER, WINFUNCTYPE, windll, WinError >>> from ctypes.wintypes import BOOL, HWND, RECT >>> prototype = WINFUNCTYPE(BOOL, HWND, POINTER(RECT)) >>> paramflags = (1, "hwnd"), (2, "lprect") |