From: Fred Drake Date: Fri, 18 Jun 1999 19:17:28 +0000 (+0000) Subject: Added paragraph about potential re-initialization of extension X-Git-Tag: v1.6a1~1190 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a48a083edb0d91a887b3d33e455a8c2a0f66d638;p=python Added paragraph about potential re-initialization of extension modules; responding to suggestion by Robin Boerdijk . --- diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex index d645af7874..33d6492078 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}}