]> granicus.if.org Git - python/commitdiff
Added paragraph about potential re-initialization of extension
authorFred Drake <fdrake@acm.org>
Fri, 18 Jun 1999 19:17:28 +0000 (19:17 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 18 Jun 1999 19:17:28 +0000 (19:17 +0000)
modules; responding to suggestion by Robin Boerdijk
<Robin.Boerdijk@nl.origin-it.com>.

Doc/ext/ext.tex

index d645af78740522a60a8e2c3aa8c3e138ee635b66..33d6492078b5edc3dc35e014958322814eac244c 100644 (file)
@@ -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}}