[Python-Dev] PEP needed? Introducing Tcl objects (original) (raw)

Guido van Rossum guido@python.org
Fri, 15 Feb 2002 10:34:28 -0500


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.

Cool!

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.wantobjects 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?

My only worry is about breaking old apps. I'd like to see a patch on SF. No PEP is needed IMO.

--Guido van Rossum (home page: http://www.python.org/~guido/)