Roger Serwy added the comment:
The problem I'm encountering is that tk.splitlist() is now being given a
Tcl_Obj instead of a "str" type. Since everything is Tcl is a string,
explicitly casting a Tcl_Obj to a string seems reasonable. Attached is some
proof-of-concept code to work around the issue.
Serhiy's patch against 3.4 gives this traceback:
[python@saturn 3.4]$ ./python tk_86_error.py
8.6
Traceback (most recent call last):
File "tk_86_error.py", line 6, in <module>
label.pack_info()
File "/home/python/python/3.4/Lib/tkinter/__init__.py", line 1924, in
pack_info
if value[:1] == '.':
TypeError: '_tkinter.Tcl_Obj' object is not subscriptable
----------
stage: patch review -> needs patch
Added file: http://bugs.python.org/file30421/tk_86_workaround.py
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16809>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com