[issue42750] tkinter.Variable equality inconsistency

2020-12-28 Thread Ivo Shipkaliev
Ivo Shipkaliev added the comment: Yes, I get it now. I've missed the idea. You can do: > age = tk.IntVar(value=38, name="mine") > age_str = tk.StringVar(name="mine") > is_alive = tk.BooleanVar(name="mine") > is_alive.get() True Maybe not the best example, but still, it was a

[issue42750] tkinter.Variable equality inconsistency

2020-12-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You confuse variable and its value. tkinter.Variable is not a data container like list. It is a reference to external resource, Tcl variable, which contains value. If different Variable instances refer to different Tcl variables, they are different, even

[issue42750] tkinter.Variable equality inconsistency

2020-12-27 Thread Ivo Shipkaliev
Ivo Shipkaliev added the comment: "I personally think that being able to compare whether two tkinter variables point to the same Tk variable is very useful so needs to stay in some form." -- I concur. "However, I don't see any situation where comparing to see if two tkinter variables are

[issue42750] tkinter.Variable equality inconsistency

2020-12-27 Thread E. Paine
E. Paine added the comment: See also issue41851. I personally think that being able to compare whether two tkinter variables point to the same Tk variable is very useful so needs to stay in some form. However, I don't see any situation where comparing to see if two tkinter variables are the

[issue42750] tkinter.Variable equality inconsistency

2020-12-27 Thread Ivo Shipkaliev
Change by Ivo Shipkaliev : -- title: tkinter.Variable equality consistency -> tkinter.Variable equality inconsistency ___ Python tracker ___