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: Docstring support for ctypesgen
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: theller Nosy List: chmod007, theller
Priority: normal Keywords: patch

Created on 2006-12-05 10:28 by chmod007, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
codegen-docstrings.diff chmod007, 2006-12-05 10:28 Patch relative to http://svn.python.org/projects/ctypes/trunk revision 52918
Messages (3)
msg51477 - (view) Author: David Remahl (chmod007) Date: 2006-12-05 10:28
ctypesgen should generate helpful docstrings for the functions it creates. This patch adds a "-d" switch to xml2py.
msg51478 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2006-12-05 17:54
Since ctypeslib (which contains the code generator) is a thirdparty product I'm closing this.

Bugs and patches for ctypes addon products should be submitted to the ctypes tracker at http://sourceforge.net/tracker/?group_id=71702.

However, I'm happy to discuss this patch on the ctypes-users mailing list.
msg51479 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2007-02-15 20:40
I would like to note that I finally integrated a patch similar to yours in the ctypeslib project.
The switch for the xml2py script is '-c' for 'comments'.  The generated comments include the C function signature from the header file, plus the name of the header file itself and the line number where the function definition is.
History
Date User Action Args
2022-04-11 14:56:21adminsetgithub: 44306
2006-12-05 10:28:32chmod007create