Message284706
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? |
|
Date |
User |
Action |
Args |
2017-01-05 04:28:20 | terry.reedy | set | recipients:
+ terry.reedy, python-dev, berker.peksag, serhiy.storchaka, zvyn, OO O |
2017-01-05 04:28:20 | terry.reedy | set | messageid: <1483590500.65.0.283323290851.issue29162@psf.upfronthosting.co.za> |
2017-01-05 04:28:20 | terry.reedy | link | issue29162 messages |
2017-01-05 04:28:20 | terry.reedy | create | |
|