Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a48a083

Browse files
committed
Added paragraph about potential re-initialization of extension
modules; responding to suggestion by Robin Boerdijk <[email protected]>.
1 parent a88ef00 commit a48a083

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Doc/ext/ext.tex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,13 @@ \section{The Module's Method Table and Initialization Function
406406
if the module could not be initialized satisfactorily, so the caller
407407
doesn't need to check for errors.
408408

409+
\strong{Note:} Removing entries from \code{sys.modules} or importing
410+
compiled modules into multiple interpreters within a process (or
411+
following a \cfunction{fork()} without an intervening
412+
\cfunction{exec()}) can create problems for some extension modules.
413+
Extension module authors should exercise caution when initializing
414+
internal data structures.
415+
409416

410417
\section{Compilation and Linkage
411418
\label{compilation}}

0 commit comments

Comments
 (0)