[issue1602742] itemconfigure returns incorrect text property of text items
report at bugs.python.org
Wed Apr 2 13:11:15 CEST 2008
Matthias Kievernagel <mkiever at web.de> added the comment:
I no longer know what I meant with "document string is
It is not very clear, but not broken.
It does not specify clearly the return value
in the case of 'without arguments'.
The problem is still present in trunk.
Problem is as far as I understand it:
Some return values from tcl are strings
that may contain spaces (or are even certain to contain
They are nonetheless translated to a Python tuple by
Tcl_SplitList in _tkinter.c.
There is no difference in syntax between tcl lists
and tcl strings (with spaces).
You have to have contextual knowledge to do the right thing.
This knowledge cannot be attached to itemconfigure alone
(for reconstitution of strings) because then information
about whitespace is already lost.
For return values known to be strings _tkinter/TkApp_SplitList
must not be used.
So I think it's a more general bug related to tcl string
Other Tkinter bugs may have the same explanation.
Don't know how to resolve this without a lot of work.
versions: +Python 2.6
Tracker <report at bugs.python.org>
More information about the Python-bugs-list