Message190336
| Author |
roger.serwy |
| Recipients |
Arfrever, gpolo, martin.panter, roger.serwy, serhiy.storchaka |
| Date |
2013年05月30日.04:57:31 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1369889851.92.0.755782476668.issue16809@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|