function inclusion problem

Tim Chase python.list at tim.thechases.com
Wed Feb 11 10:22:10 EST 2015


On 2015-02-11 10:07, Dave Angel wrote:
> if there are tons of them, you do NOT want to pollute your local 
> namespace with them, and should do:
> 
> import mydef
> 
> x = mydef.func2()   # or whatever

or, if that's verbose, you can give a shorter alias:

  import Tkinter as tk
  root = tk.Tk()
  root.mainloop()

-tkc







More information about the Python-list mailing list