summaryrefslogtreecommitdiffstats
path: root/Doc/ext
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-06-18 19:17:28 (GMT)
committerFred Drake <fdrake@acm.org>1999-06-18 19:17:28 (GMT)
commita48a083edb0d91a887b3d33e455a8c2a0f66d638 (patch)
treeac3172d6ecd14afa9f95d21f5efc99f1200b518f /Doc/ext
parenta88ef00a50bea5b6f7df28a51a84d0938bf6fe95 (diff)
downloadcpython-a48a083edb0d91a887b3d33e455a8c2a0f66d638.zip
cpython-a48a083edb0d91a887b3d33e455a8c2a0f66d638.tar.gz
cpython-a48a083edb0d91a887b3d33e455a8c2a0f66d638.tar.bz2
Added paragraph about potential re-initialization of extension
modules; responding to suggestion by Robin Boerdijk <Robin.Boerdijk@nl.origin-it.com>.
Diffstat (limited to 'Doc/ext')
-rw-r--r--Doc/ext/ext.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex
index d645af7..33d6492 100644
--- a/Doc/ext/ext.tex
+++ b/Doc/ext/ext.tex
@@ -406,6 +406,13 @@ that it creates (which is unused here). It aborts with a fatal error
if the module could not be initialized satisfactorily, so the caller
doesn't need to check for errors.
+\strong{Note:} Removing entries from \code{sys.modules} or importing
+compiled modules into multiple interpreters within a process (or
+following a \cfunction{fork()} without an intervening
+\cfunction{exec()}) can create problems for some extension modules.
+Extension module authors should exercise caution when initializing
+internal data structures.
+
\section{Compilation and Linkage
\label{compilation}}