Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d358afe

Browse files
committed
Document 'N' format character for Py_BuildValue -- like 'O' but doesn't INCREF.
1 parent d341500 commit d358afe

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Doc/ext/ext.tex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
\documentclass{manual}
22

3-
% XXX PM Modulator
3+
% XXX PM explain how to add new types to Python
44

55
\title{Extending and Embedding the Python Interpreter}
66

@@ -942,6 +942,11 @@ \section{The \cfunction{Py_BuildValue()} Function
942942
\item[\samp{S} (object) {[PyObject *]}]
943943
Same as \samp{O}.
944944

945+
\item[\samp{N} (object) {[PyObject *]}]
946+
Same as \samp{O}, except it doesn't increment the reference count on
947+
the object. Useful when the object is created by a call to an object
948+
constructor in the argument list.
949+
945950
\item[\samp{O\&} (object) {[\var{converter}, \var{anything}]}]
946951
Convert \var{anything} to a Python object through a \var{converter}
947952
function. The function is called with \var{anything} (which should be

0 commit comments

Comments
 (0)