MCPcopy Create free account
hub / github.com/ipython/ipython / __init__

Method __init__

IPython/extensions/autoreload.py:134–147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

132 """Autoreload all modules, not just those listed in 'modules'"""
133
134 def __init__(self):
135 # Modules that failed to reload: {module: mtime-on-failed-reload, ...}
136 self.failed = {}
137 # Modules specially marked as autoreloadable.
138 self.modules = {}
139 # Modules specially marked as not autoreloadable.
140 self.skip_modules = {}
141 # (module-name, name) -> weakref, for replacing old code objects
142 self.old_objects = {}
143 # Module modification timestamps
144 self.modules_mtimes = {}
145
146 # Cache module modification times
147 self.check(check_all=True, do_reload=False)
148
149 def mark_module_skipped(self, module_name):
150 """Skip reloading the named module in the future"""

Callers

nothing calls this directly

Calls 1

checkMethod · 0.95

Tested by

no test coverage detected