[Python-checkins] r63415 - python/trunk/Lib/tkinter/__init__.py
georg.brandl
python-checkins at python.org
Sat May 17 20:17:46 CEST 2008
Author: georg.brandl
Date: Sat May 17 20:17:45 2008
New Revision: 63415
Log:
Don't export a name "tkinter" from the "tkinter" package.
Else people doing "from tkinter import *" will get a nasty surprise.
Modified:
python/trunk/Lib/tkinter/__init__.py
Modified: python/trunk/Lib/tkinter/__init__.py
==============================================================================
--- python/trunk/Lib/tkinter/__init__.py (original)
+++ python/trunk/Lib/tkinter/__init__.py Sat May 17 20:17:45 2008
@@ -37,7 +37,6 @@
# Attempt to configure Tcl/Tk without requiring PATH
from tkinter import _fix
import _tkinter # If this fails your Python may not be configured for Tk
-tkinter = _tkinter # b/w compat for export
TclError = _tkinter.TclError
from types import *
from tkinter.constants import *
More information about the Python-checkins
mailing list