← 输入框|bugs.python.org|刷新

➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 roger.serwy
收信人 Arfrever, gpolo, martin.panter, roger.serwy, serhiy.storchaka
日期 2013-05-30.04:57:31
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1369889851.92.0.755782476668.issue16809@psf.upfronthosting.co.za>
In-reply-to
内容
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
历史
日期 用户 动作 参数
2013-05-30 04:57:32roger.serwy修改recipients: + roger.serwy, gpolo, Arfrever, martin.panter, serhiy.storchaka
2013-05-30 04:57:31roger.serwy修改messageid: <1369889851.92.0.755782476668.issue16809@psf.upfronthosting.co.za>
2013-05-30 04:57:31roger.serwy链接issue16809 messages
2013-05-30 04:57:31roger.serwy创建