classification
Title: Document PyCFunction_New and PyCFunction_NewEx functions
Type: enhancement Stage:
Components: Documentation Versions: Python 3.2, Python 3.3, Python 3.4, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: asvetlov, docs@python, martin.panter, vstinner
Priority: normal Keywords: easy

Created on 2012-12-25 11:15 by asvetlov, last changed 2014-12-31 16:34 by akuchling.

Files
File name Uploaded Description Edit
16776.txt akuchling, 2013-11-11 20:32 review
Messages (4)
msg178115 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2012-12-25 11:15
c-api docs has no documentation for those public API functions.
msg202651 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2013-11-11 20:32
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?
msg202652 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2013-11-11 20:32
Mis-clicked and forgot to attach the patch.
msg232788 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2014-12-17 01:13
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.
History
Date User Action Args
2014-12-31 16:34:48akuchlingsetnosy: - akuchling
2014-12-17 01:13:20martin.pantersetnosy: + martin.panter
messages: + msg232788
2013-11-12 21:53:07vstinnersetnosy: + vstinner
2013-11-11 20:32:48akuchlingsetfiles: + 16776.txt

messages: + msg202652
2013-11-11 20:32:30akuchlingsetnosy: + akuchling
messages: + msg202651
2012-12-25 11:15:54asvetlovcreate