MCPcopy Index your code
hub / github.com/RustPython/RustPython / __del__

Method __del__

Lib/tkinter/__init__.py:410–419  ·  view source on GitHub ↗

Unset the variable in Tcl.

(self)

Source from the content-addressed store, hash-verified

408 self.initialize(self._default)
409
410 def __del__(self):
411 """Unset the variable in Tcl."""
412 if self._tk is None:
413 return
414 if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
415 self._tk.globalunsetvar(self._name)
416 if self._tclCommands is not None:
417 for name in self._tclCommands:
418 self._tk.deletecommand(name)
419 self._tclCommands = None
420
421 def __str__(self):
422 """Return the name of the variable in Tcl."""

Callers

nothing calls this directly

Calls 3

deletecommandMethod · 0.80
getbooleanMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected