]> granicus.if.org Git - python/commitdiff
Document 'N' format character for Py_BuildValue -- like 'O' but doesn't INCREF.
authorGuido van Rossum <guido@python.org>
Wed, 23 Dec 1998 05:02:08 +0000 (05:02 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 23 Dec 1998 05:02:08 +0000 (05:02 +0000)
Doc/ext/ext.tex

index c63c6cbf8084591f4ab434defdc3f535f174d336..089118575a86b66cc032d9e7ad9c562593f6ef62 100644 (file)
@@ -1,6 +1,6 @@
 \documentclass{manual}
 
-% XXX PM Modulator
+% XXX PM explain how to add new types to Python
 
 \title{Extending and Embedding the Python Interpreter}
 
@@ -942,6 +942,11 @@ exception.  If no exception has been raised yet,
 \item[\samp{S} (object) {[PyObject *]}]
 Same as \samp{O}.
 
+\item[\samp{N} (object) {[PyObject *]}]
+Same as \samp{O}, except it doesn't increment the reference count on
+the object.  Useful when the object is created by a call to an object
+constructor in the argument list.
+
 \item[\samp{O\&} (object) {[\var{converter}, \var{anything}]}]
 Convert \var{anything} to a Python object through a \var{converter}
 function.  The function is called with \var{anything} (which should be