Issue 19028: tkinter.tkapp.merge() fails on non-strings (original) (raw)
tkinter.tkapp.merge() recursively merge Python data into Tcl string. When a subitem neither tuple, string or byte string, it calls str() on it. But then it use PyBytes_AsString() which always fails because accepts bytes instead of str.
The proposed patch fixes processing general objects in merge(), simplifies processing strings, and adds tests.
This is only 3.3 issue. merge() was deprecated and removed in 3.4.