On 2015-12-18 14:13, Mark Lawrence wrote:
On 18/12/2015 18:38, Alex Kleider wrote:

Another issue about which I'd like to hear comments has to do with
how the imports are done.
Roseman indicates that
     from tkinter import *
     from tkinter import ttk
is the generally accepted way of doing the importing but the first line
uses a syntax that is strongly discouraged so my inclination is to use
     import tkinter as tk
     from tkinter import ttk
instead.

Comments?


from xyz import * is The Road To Hell.

Sticking with the explicit way of importing modules makes life so much
easier in the long term that there is IMHO nothing to discuss.

Vindicated!
Thank you.
Alex
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to