TenjintShell.del_var

TenjintShell.del_var(varname, by_name=False)

Delete a variable from the various namespaces, so that, as far as possible, we’re not keeping any hidden references to it.

Parameters
  • varname (str) – The name of the variable to delete.

  • by_name (bool) – If True, delete variables with the given name in each namespace. If False (default), find the variable in the user namespace, and delete references to it.