[Tutor] "from this import *" or "import this"
alan.gauld@bt.com
alan.gauld@bt.com
Mon, 3 Dec 2001 13:31:44 -0000
> never programmed before and do not intend to make a career
> out of what I am learning
> is there a real use for the form "from this_module
> import * " since
Its shorter to type but has several dangers attached, most of
which you have correctly identified. For a beginner thats a
great start :-)
Stick with
import foo
and save much grief.
Use 'from foo import x,y' etc when you are absolutely SURE its OK
and you know you'll use the functions a lot. (Tkinter etc are the
classic examples of sensible use)
Alan G