projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d54523
)
Oops, better also note that the module initialization function must be
author
Fred Drake
<fdrake@acm.org>
Wed, 10 May 2000 20:36:34 +0000
(20:36 +0000)
committer
Fred Drake
<fdrake@acm.org>
Wed, 10 May 2000 20:36:34 +0000
(20:36 +0000)
extern "C" for C++.
Doc/ext/ext.tex
patch
|
blob
|
history
diff --git
a/Doc/ext/ext.tex
b/Doc/ext/ext.tex
index 532331f606d90a780445e028d0d19090bc8a52a4..683c11e790c49c940b5ef611ecac455680150a6b 100644
(file)
--- a/
Doc/ext/ext.tex
+++ b/
Doc/ext/ext.tex
@@
-400,6
+400,8
@@
initspam()
}
\end{verbatim}
+Note that for \Cpp, this method must be declared \code{extern "C"}.
+
When the Python program imports module \module{spam} for the first
time, \cfunction{initspam()} is called. (See below for comments about
embedding Python.) It calls