[Python-checkins] cpython: Tweak some doc wording for importlib.reload

brett.cannon python-checkins at python.org
Fri Oct 25 19:53:12 CEST 2013


http://hg.python.org/cpython/rev/1428659a41b6
changeset:   86630:1428659a41b6
parent:      86627:e1b5149adc3b
user:        Brett Cannon <brett at python.org>
date:        Fri Oct 25 13:52:46 2013 -0400
summary:
  Tweak some doc wording for importlib.reload

files:
  Doc/library/importlib.rst |  5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)


diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -121,9 +121,10 @@
    so it must have been successfully imported before.  This is useful if you
    have edited the module source file using an external editor and want to try
    out the new version without leaving the Python interpreter.  The return value
-   is the module object (the same as the *module* argument).
+   is the module object (which can be different if re-importing causes a
+   different object to be placed in :data:`sys.modules`).
 
-   When :func:`.reload` is executed:
+   When :func:`reload` is executed:
 
    * Python modules' code is recompiled and the module-level code re-executed,
      defining a new set of objects which are bound to names in the module's

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list