MCPcopy Index your code
hub / github.com/python/cpython / detach

Method detach

Lib/idlelib/configdialog.py:2270–2275  ·  view source on GitHub ↗

Remove callback from traced vars.

(self)

Source from the content-addressed store, hash-verified

2268 self.traced.append((var, callback))
2269
2270 def detach(self):
2271 "Remove callback from traced vars."
2272 while self.traced:
2273 var, callback = self.traced.pop()
2274 var.trace_remove('write', var.trace_info()[0][1])
2275 self.untraced.append((var, callback))
2276
2277
2278tracers = VarTrace()

Callers 5

tearDownModuleFunction · 0.45
test_load_font_cfgMethod · 0.45
test_load_theme_cfgMethod · 0.45
test_load_key_cfgMethod · 0.45
test_attach_detachMethod · 0.45

Calls 4

trace_removeMethod · 0.80
trace_infoMethod · 0.80
popMethod · 0.45
appendMethod · 0.45

Tested by 5

tearDownModuleFunction · 0.36
test_load_font_cfgMethod · 0.36
test_load_theme_cfgMethod · 0.36
test_load_key_cfgMethod · 0.36
test_attach_detachMethod · 0.36