summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-23 05:02:08 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-23 05:02:08 (GMT)
commitd358afeec003c2eebac3524c7343110ad8d744b3 (patch)
tree7a697e993ba1edbe846d325442cbff5cbde55b6f /Doc
parentd341500d8f61633aefe90f3c8d4cc154360812ae (diff)
downloadcpython-d358afeec003c2eebac3524c7343110ad8d744b3.zip
cpython-d358afeec003c2eebac3524c7343110ad8d744b3.tar.gz
cpython-d358afeec003c2eebac3524c7343110ad8d744b3.tar.bz2
Document 'N' format character for Py_BuildValue -- like 'O' but doesn't INCREF.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/ext/ext.tex7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex
index c63c6cb..0891185 100644
--- a/Doc/ext/ext.tex
+++ b/Doc/ext/ext.tex
@@ -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