On 09/03/2014 21:35, Alan Gauld wrote:
On 09/03/14 19:56, Ben Finney wrote:
Then I'm further confirmed in my view that ‘from tkinter import *’ is
dreadful practice, especially for a system we recommend to newcomers.
Its always dreadful practice for production code regardless of the
module. Its OK for playing at the >>> prompt but not much more.
I usually import Tkinter as
import tkinter as tk
Now all I need is for the Tkinter-using community to change itself to
fix this confusing practice. I won't hold my breath.
I don't find everyone in the Tkinter community using from tkinter import
*, quite a few use normal practice. But historically I agree
it's been an unfortunate paradigm, Even the IDLE code uses
import * :-(
I vaguely recall reading somewhere that IDLE is moving towards 'ímport
tkinter as tk', a process which would certainly be helped by the
extremely sensible PEP 434 http://legacy.python.org/dev/peps/pep-0434/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor