[New-bugs-announce] [issue19028] tkinter.tkapp.merge() fails on non-strings

Serhiy Storchaka report at bugs.python.org
Sun Sep 15 22:51:08 CEST 2013


New submission from Serhiy Storchaka:

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.

----------
components: Tkinter
files: tkinter_merge.patch
keywords: patch
messages: 197833
nosy: gpolo, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: tkinter.tkapp.merge() fails on non-strings
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file31783/tkinter_merge.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19028>
_______________________________________


More information about the New-bugs-announce mailing list