def xreload(mod): """Reload a module in place, updating classes, methods and functions. mod: a module object """ r = Reload(mod) r.apply() r = None pydevd_dont_trace.clear_trace_filter_cache()
def xreload(mod): """Reload a module in place, updating classes, methods and functions. mod: a module object Returns a boolean indicating whether a change was done. """ r = Reload(mod) r.apply() found_change = r.found_change r = None pydevd_dont_trace.clear_trace_filter_cache() return found_change