Show More
@@ -549,12 +549,12 b" object? -> Details about 'object'. ?object also works, ?? prints more." | |||||
549 |
|
549 | |||
550 | # Recursive reload |
|
550 | # Recursive reload | |
551 | try: |
|
551 | try: | |
552 |
from IPython import deep |
|
552 | from IPython.lib import deepreload | |
553 | if IP_rc.deep_reload: |
|
553 | if IP_rc.deep_reload: | |
554 |
__builtin__.reload = deep |
|
554 | __builtin__.reload = deepreload.reload | |
555 | else: |
|
555 | else: | |
556 |
__builtin__.dreload = deep |
|
556 | __builtin__.dreload = deepreload.reload | |
557 |
del deep |
|
557 | del deepreload | |
558 | except ImportError: |
|
558 | except ImportError: | |
559 | pass |
|
559 | pass | |
560 |
|
560 |
@@ -2,14 +2,14 b'' | |||||
2 | """ |
|
2 | """ | |
3 | A module to change reload() so that it acts recursively. |
|
3 | A module to change reload() so that it acts recursively. | |
4 | To enable it type: |
|
4 | To enable it type: | |
5 |
>>> import __builtin__, deep |
|
5 | >>> import __builtin__, deepreload | |
6 |
>>> __builtin__.reload = deep |
|
6 | >>> __builtin__.reload = deepreload.reload | |
7 |
|
7 | |||
8 | You can then disable it with: |
|
8 | You can then disable it with: | |
9 |
>>> __builtin__.reload = deep |
|
9 | >>> __builtin__.reload = deepreload.original_reload | |
10 |
|
10 | |||
11 | Alternatively, you can add a dreload builtin alongside normal reload with: |
|
11 | Alternatively, you can add a dreload builtin alongside normal reload with: | |
12 |
>>> __builtin__.dreload = deep |
|
12 | >>> __builtin__.dreload = deepreload.reload | |
13 |
|
13 | |||
14 | This code is almost entirely based on knee.py from the standard library. |
|
14 | This code is almost entirely based on knee.py from the standard library. | |
15 | """ |
|
15 | """ |
@@ -4,3 +4,6 b'' | |||||
4 | def test_import_backgroundjobs(): |
|
4 | def test_import_backgroundjobs(): | |
5 | from IPython.lib import backgroundjobs |
|
5 | from IPython.lib import backgroundjobs | |
6 |
|
6 | |||
|
7 | def test_import_deepreload(): | |||
|
8 | from IPython.lib import deepreload | |||
|
9 |
@@ -199,7 +199,7 b' def make_runners():' | |||||
199 | # decorator. See ticket https://bugs.launchpad.net/bugs/366209 |
|
199 | # decorator. See ticket https://bugs.launchpad.net/bugs/366209 | |
200 | top_mod = \ |
|
200 | top_mod = \ | |
201 | ['backgroundjobs.py', 'coloransi.py', 'completer.py', 'configloader.py', |
|
201 | ['backgroundjobs.py', 'coloransi.py', 'completer.py', 'configloader.py', | |
202 |
'crashhandler.py', 'debugger.py', 'deep |
|
202 | 'crashhandler.py', 'debugger.py', 'deepreload.py', 'demo.py', | |
203 | 'DPyGetOpt.py', 'dtutils.py', 'excolors.py', 'FakeModule.py', |
|
203 | 'DPyGetOpt.py', 'dtutils.py', 'excolors.py', 'FakeModule.py', | |
204 | 'generics.py', 'genutils.py', 'history.py', 'hooks.py', 'ipapi.py', |
|
204 | 'generics.py', 'genutils.py', 'history.py', 'hooks.py', 'ipapi.py', | |
205 | 'iplib.py', 'ipmaker.py', 'ipstruct.py', 'Itpl.py', |
|
205 | 'iplib.py', 'ipmaker.py', 'ipstruct.py', 'Itpl.py', |
@@ -82,6 +82,8 b' Prodecure' | |||||
82 | Need to modify iptests to properly skip modules that are no longer top |
|
82 | Need to modify iptests to properly skip modules that are no longer top | |
83 | level modules. |
|
83 | level modules. | |
84 |
|
84 | |||
|
85 | Need to update the top level IPython/__init__.py file. | |||
|
86 | ||||
85 | Where things will be moved |
|
87 | Where things will be moved | |
86 | ========================== |
|
88 | ========================== | |
87 |
|
89 | |||
@@ -91,15 +93,18 b' Where things will be moved' | |||||
91 |
|
93 | |||
92 | * :file:`completer.py`. Move to :file:`IPython/core/completer.py`. |
|
94 | * :file:`completer.py`. Move to :file:`IPython/core/completer.py`. | |
93 |
|
95 | |||
94 |
|
||||
95 | * :file:`ConfigLoader.py`. Move to :file:`IPython/config/configloader.py`. |
|
96 | * :file:`ConfigLoader.py`. Move to :file:`IPython/config/configloader.py`. | |
96 |
|
97 | |||
97 | * :file:`CrashHandler.py`. Move to :file:`IPython/core/crashhandler`. |
|
98 | * :file:`CrashHandler.py`. Move to :file:`IPython/core/crashhandler`. | |
98 |
|
99 | |||
99 | * :file:`DPyGetOpt.py`. Move to :mod:`IPython.sandbox` and replace with newer options parser. |
|
|||
100 |
|
||||
101 | * :file:`Debugger.py`. Move to :file:`IPython/core/debugger.py`. |
|
100 | * :file:`Debugger.py`. Move to :file:`IPython/core/debugger.py`. | |
102 |
|
101 | |||
|
102 | * :file:`deep_reload.py`. Move to :file:`IPython/lib/deepreload.py`. | |||
|
103 | ||||
|
104 | ||||
|
105 | ||||
|
106 | * :file:`DPyGetOpt.py`. Move to :mod:`IPython.sandbox` and replace with newer options parser. | |||
|
107 | ||||
103 | * :file:`Extensions`. This needs to be gone through separately. Minimally, |
|
108 | * :file:`Extensions`. This needs to be gone through separately. Minimally, | |
104 | the package should be renamed to :file:`extensions`. |
|
109 | the package should be renamed to :file:`extensions`. | |
105 |
|
110 | |||
@@ -140,7 +145,6 b' Where things will be moved' | |||||
140 |
|
145 | |||
141 | * :file:`config`. Good where it is! |
|
146 | * :file:`config`. Good where it is! | |
142 |
|
147 | |||
143 | * :file:`deep_reload.py`. Move to :file:`IPython/lib/deepreload.py`. |
|
|||
144 |
|
148 | |||
145 | * :file:`demo.py`. Move to :file:`IPython/lib/demo.py`. |
|
149 | * :file:`demo.py`. Move to :file:`IPython/lib/demo.py`. | |
146 |
|
150 |
General Comments 0
You need to be logged in to leave comments.
Login now