Show More
@@ -1054,7 +1054,7 b' class InteractiveShell(SingletonConfigurable):' | |||||
1054 | # Now that FakeModule produces a real module, we've run into a nasty |
|
1054 | # Now that FakeModule produces a real module, we've run into a nasty | |
1055 | # problem: after script execution (via %run), the module where the user |
|
1055 | # problem: after script execution (via %run), the module where the user | |
1056 | # code ran is deleted. Now that this object is a true module (needed |
|
1056 | # code ran is deleted. Now that this object is a true module (needed | |
1057 |
# so doc |
|
1057 | # so doctest and other tools work correctly), the Python module | |
1058 | # teardown mechanism runs over it, and sets to None every variable |
|
1058 | # teardown mechanism runs over it, and sets to None every variable | |
1059 | # present in that module. Top-level references to objects from the |
|
1059 | # present in that module. Top-level references to objects from the | |
1060 | # script survive, because the user_ns is updated with them. However, |
|
1060 | # script survive, because the user_ns is updated with them. However, | |
@@ -1168,7 +1168,7 b' class InteractiveShell(SingletonConfigurable):' | |||||
1168 | # user_ns, and we sync that contents into user_ns_hidden so that these |
|
1168 | # user_ns, and we sync that contents into user_ns_hidden so that these | |
1169 | # initial variables aren't shown by %who. After the sync, we add the |
|
1169 | # initial variables aren't shown by %who. After the sync, we add the | |
1170 | # rest of what we *do* want the user to see with %who even on a new |
|
1170 | # rest of what we *do* want the user to see with %who even on a new | |
1171 |
# session (probably nothing, so they |
|
1171 | # session (probably nothing, so they really only see their own stuff) | |
1172 |
|
1172 | |||
1173 | # The user dict must *always* have a __builtin__ reference to the |
|
1173 | # The user dict must *always* have a __builtin__ reference to the | |
1174 | # Python standard __builtin__ namespace, which must be imported. |
|
1174 | # Python standard __builtin__ namespace, which must be imported. |
General Comments 0
You need to be logged in to leave comments.
Login now