[Python-bugs-list] [Bug #116453] [Windows] TclError does not always produce error messages

noreply@sourceforge.net noreply@sourceforge.net
Wed, 11 Oct 2000 12:37:35 -0700


Bug #116453, was updated on 2000-Oct-09 17:00
Here is a current snapshot of the bug.

Project: Python
Category: Tkinter
Status: Open
Resolution: None
Bug Group: Platform-specific
Priority: 5
Summary: [Windows] TclError does not always produce error messages

Details: In 1.5.2, doing l=Tkinter.Label(text1="bla") gives a traceback that ends with
TclError: unknown option "-text1"
In 2.0c1 (and any other recent version), with Tcl 8.3, it gives
TclError
It would be good if the error message would be provided as well.

According to tcl.h, direct access to interp->result is discouraged since 8.0; applications should use Tcl_GetObjResult (probably, GetStringResult is as good). I have not verified whether that solves the problem.

Follow-Ups:

Date: 2000-Oct-09 17:39
By: gvanrossum

Comment:
I cannot reproduce this with 2.0rc1 on Red Hat Linux 6.2, but I get the same phenomenon on Windows.

I 'll experiment with the suggestion after 2.0rc1 is released.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=116453&group_id=5470