Skip to content

Commit 8ad3786

Browse files
committed
Tweak some doc wording for importlib.reload
1 parent 50aa324 commit 8ad3786

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/importlib.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,10 @@ Functions
121121
so it must have been successfully imported before. This is useful if you
122122
have edited the module source file using an external editor and want to try
123123
out the new version without leaving the Python interpreter. The return value
124-
is the module object (the same as the *module* argument).
124+
is the module object (which can be different if re-importing causes a
125+
different object to be placed in :data:`sys.modules`).
125126

126-
When :func:`.reload` is executed:
127+
When :func:`reload` is executed:
127128

128129
* Python modules' code is recompiled and the module-level code re-executed,
129130
defining a new set of objects which are bound to names in the module's

0 commit comments

Comments
 (0)