]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
change warning about C++
authorGuido van Rossum <guido@python.org>
Sun, 8 Oct 1995 00:17:19 +0000 (00:17 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 8 Oct 1995 00:17:19 +0000 (00:17 +0000)
Doc/ext.tex
Doc/ext/ext.tex

index 48191246fd9c002a88b1265ea60325c23937a02a..963f8fff9ee6b0a81ef001fdbd89017eb8e1c6c6 100644 (file)
@@ -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.
index 48191246fd9c002a88b1265ea60325c23937a02a..963f8fff9ee6b0a81ef001fdbd89017eb8e1c6c6 100644 (file)
@@ -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.