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.

Author terry.reedy
Recipients OO O, berker.peksag, python-dev, serhiy.storchaka, terry.reedy, zvyn
Date 2017-01-05.04:28:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483590500.65.0.283323290851.issue29162@psf.upfronthosting.co.za>
In-reply-to
Content
I agree that depending on the incidental import is a bug.  Tkinter could change, or I might change 'from tkinter import *' to 'from tkinter import Tk, ...' or 'import tkinter as tk'.

Serhiy, tkinter/__init__.py imports enum, sys, and re under their own names, so that * imports incidentally import them into other programs.  I believe it is customary for library modules to underscore stdlib imports to prevent this: "import enum as _enum", etc.  But I don't remember is this is in the devguide.  Do you think we should make the change to tkinter?
History
Date User Action Args
2017-01-05 04:28:20terry.reedysetrecipients: + terry.reedy, python-dev, berker.peksag, serhiy.storchaka, zvyn, OO O
2017-01-05 04:28:20terry.reedysetmessageid: <1483590500.65.0.283323290851.issue29162@psf.upfronthosting.co.za>
2017-01-05 04:28:20terry.reedylinkissue29162 messages
2017-01-05 04:28:20terry.reedycreate