summaryrefslogtreecommitdiffstats
path: root/Doc/ext.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-10-08 00:17:19 (GMT)
committerGuido van Rossum <guido@python.org>1995-10-08 00:17:19 (GMT)
commited39cd05c238ec4a56be80b5a34cccc84b1e72fc (patch)
treeebba3617e66b9708e529837f4b41bf248d2b6186 /Doc/ext.tex
parente5eb5eb55e6db966779834ea3bf1018acc843531 (diff)
downloadcpython-ed39cd05c238ec4a56be80b5a34cccc84b1e72fc.zip
cpython-ed39cd05c238ec4a56be80b5a34cccc84b1e72fc.tar.gz
cpython-ed39cd05c238ec4a56be80b5a34cccc84b1e72fc.tar.bz2
change warning about C++
Diffstat (limited to 'Doc/ext.tex')
-rw-r--r--Doc/ext.tex5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/ext.tex b/Doc/ext.tex
index 4819124..963f8ff 100644
--- a/Doc/ext.tex
+++ b/Doc/ext.tex
@@ -1133,9 +1133,10 @@ the Python user.
\section{Writing Extensions in \Cpp{}}
It is possible to write extension modules in \Cpp{}. Some restrictions
-apply: since the main program (the Python interpreter) is compiled and
+apply. If the main program (the Python interpreter) is compiled and
linked by the C compiler, global or static objects with constructors
-cannot be used. All functions that will be called directly or
+cannot be used. This is not a problem if the main program is linked
+by the \Cpp{} compiler. All functions that will be called directly or
indirectly (i.e. via function pointers) by the Python interpreter will
have to be declared using \code{extern "C"}; this applies to all
``methods'' as well as to the module's initialization function.