This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: missing imports ctypes in documentation examples
Type: Stage:
Components: Documentation Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: theller Nosy List: dvarrazzo, nnorwitz, theller
Priority: normal Keywords: patch

Created on 2006-09-13 12:54 by dvarrazzo, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
ctypes-doc.diff dvarrazzo, 2006-09-13 12:54
Messages (4)
msg51113 - (view) Author: Daniele Varrazzo (dvarrazzo) * Date: 2006-09-13 12:54
The attached patch fixes a couple of missing imports in
ctypes documentation examples.
msg51114 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-10-28 22:15
Logged In: YES 
user_id=33168

Thanks for the patch.  I think WinError is meant to be a
user defined error.  There isn't one in ctypes that I saw. 
So I left that part of the patch out.  Instead of adding an
import, I used UINT which was already imported and conformed
to the prototype given above.

Committed revision 52515. (2.5)
Committed revision 52514. (2.6)
msg51115 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2006-11-02 20:03
Logged In: YES 
user_id=11105

Unfortuately ;-), dvarrazzo is right.  WinError is a symbol
exported by ctypes.  I'll update the docs.
msg51116 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2006-11-02 20:28
Logged In: YES 
user_id=11105

Fixed in svn rev 52592 (trunk) and rev 52593 (release25-maint).
History
Date User Action Args
2022-04-11 14:56:20adminsetgithub: 43969
2006-09-13 12:54:11dvarrazzocreate