A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2004-March/040147.html below:

[Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.161,1.162

[Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.161,1.162montanaro at users.sourceforge.net montanaro at users.sourceforge.net
Fri Mar 19 10:20:18 EST 2004
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21799

Modified Files:
	libfuncs.tex 
Log Message:
Expand on the semantics of reload().  Closes #919099.


Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.161
retrieving revision 1.162
diff -C2 -d -r1.161 -r1.162
*** libfuncs.tex	1 Jan 2004 03:41:27 -0000	1.161
--- libfuncs.tex	19 Mar 2004 15:20:16 -0000	1.162
***************
*** 786,790 ****
  
  \begin{funcdesc}{reload}{module}
!   Re-parse and re-initialize an already imported \var{module}.  The
    argument must be a module object, so it must have been successfully
    imported before.  This is useful if you have edited the module
--- 786,790 ----
  
  \begin{funcdesc}{reload}{module}
!   Reload a previously imported \var{module}.  The
    argument must be a module object, so it must have been successfully
    imported before.  This is useful if you have edited the module
***************
*** 793,797 ****
    the module object (the same as the \var{module} argument).
  
!   There are a number of caveats:
  
    If a module is syntactically correct but its initialization fails,
--- 793,819 ----
    the module object (the same as the \var{module} argument).
  
!   When \code{reload(module)} is executed:
! 
! \begin{itemize}
! 
!     \item{Python modules' code is recompiled and the module-level code
!     reexecuted, defining a new set of objects which are bound to names in
!     the module's dictionary.  The \code{init} function of extension
!     modules is not called a second time.}
! 
!     \item{As with all other objects in Python the old objects are only
!     reclaimed after their reference counts drop to zero.}
! 
!     \item{The names in the module namespace are updated to point to
!     any new or changed objects.}
! 
!     \item{Other references to the old objects (such as names external
!     to the module) are not rebound to refer to the new objects and
!     must be updated in each namespace where they occur if that is
!     desired.}
! 
! \end{itemize}
! 
!   There are a number of other caveats:
  
    If a module is syntactically correct but its initialization fails,


More information about the Python-checkins mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4