[Python-checkins] CVS: python/dist/src/Doc/ext ext.tex,1.85,1.86

Fred L. Drake python-dev@python.org
Mon, 2 Oct 2000 15:38:12 -0700


Update of /cvsroot/python/python/dist/src/Doc/ext
In directory slayer.i.sourceforge.net:/tmp/cvs-serv29667/ext

Modified Files:
	ext.tex 
Log Message:

Added some comments on the interaction of reload() and extension modules.
Based on comments from Chris Barker <cbarker@jps.net>.


Index: ext.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ext/ext.tex,v
retrieving revision 1.85
retrieving revision 1.86
diff -C2 -r1.85 -r1.86
*** ext.tex	2000/09/21 21:35:21	1.85
--- ext.tex	2000/10/02 22:38:09	1.86
***************
*** 436,440 ****
  \end{verbatim}
  
! And example may be found in the file \file{Demo/embed/demo.c} in the
  Python source distribution.
  
--- 436,440 ----
  \end{verbatim}
  
! An example may be found in the file \file{Demo/embed/demo.c} in the
  Python source distribution.
  
***************
*** 445,448 ****
--- 445,453 ----
  Extension module authors should exercise caution when initializing
  internal data structures.
+ Note also that the \function{reload()} function can be used with
+ extension modules, and will call the module initialization function
+ (\cfunction{initspam()} in the example), but will not load the module
+ again if it was loaded from a dynamically loadable object file
+ (\file{.so} on \UNIX, \file{.dll} on Windows).
  
  A more substantial example module is included in the Python source