[issue16776] Document PyCFunction_New and PyCFunction_NewEx functions
New submission from Andrew Svetlov:
c-api docs has no documentation for those public API functions.
----------
assignee: docs@python
components: Documentation
keywords: easy
messages: 178115
nosy: asvetlov, docs@python
priority: normal
severity: normal
status: open
title: Document PyCFunction_New and PyCFunction_NewEx functions
type: enhancement
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4
_______________________________________
Python tracker
A.M. Kuchling added the comment:
Here's a patch that contains text for a description of these two functions. However, I can't figure out what section they would belong in. They don't really belong in http://docs.python.org/3.4/c-api/structures.html, which is for the C structures.
Also note that PyCFunctionObject isn't described anywhere. Should it be?
----------
nosy: +akuchling
_______________________________________
Python tracker
A.M. Kuchling added the comment:
Mis-clicked and forgot to attach the patch.
----------
Added file: http://bugs.python.org/file32578/16776.txt
_______________________________________
Python tracker
Changes by STINNER Victor
Martin Panter added the comment:
I’m far from an expert on the C API, but I was looking for a way to inspect a “builtin_function_or_method” a.k.a. PyCFunction_Type a.k.a. types.BuiltinMethodType, and ended up looking at the “Instance Method Objects” section. So maybe your functions should go near there, or perhaps the nearby “Function Objects” section.
----------
nosy: +vadmium
_______________________________________
Python tracker
Changes by A.M. Kuchling
Petr Viktorin
Roger Hurwitz
Guido van Rossum
participants (7)
-
A.M. Kuchling
-
Andrew Svetlov
-
Guido van Rossum
-
Martin Panter
-
Petr Viktorin
-
Roger Hurwitz
-
STINNER Victor