[Python-Dev] PEP needed? Introducing Tcl objects

Martin v. Loewis martin@v.loewis.de
Fri, 15 Feb 2002 10:36:20 +0100


I have a patch that makes the Tcl object API available to _tkinter, in
the sense that Tcl invocations don't necessarily return strings, but
return Tcl objects (or appropriately converted Python objects). This
both helps to improve efficiency, and to improve correctness of Tkinter
applications since less type guessing is needed.

For backward compatibility, there is an option on the tkapp object to
determine whether strings or objects are returned. This is on by
default when using Tkinter, but can be turned off through setting
Tkinter.want_objects to 0. I found that IDLE still works fine when
using Tcl objects.

Do I need to write a PEP for this change, should I post a patch to SF,
or should I just apply the change to the CVS?

Regards,
Martin