[Tutor] def problem

Kalle Svensson kalle@gnupung.net
Mon, 11 Jun 2001 21:53:47 +0200


Sez Gregor Lingl:
[snip]
> or to import this way:
> >>> from test123 import *

I would recommend against using "from x import *", use "from x import w,y,z"
instead.  "from x import *" might rebind names in the current namespace that
you do not want it to...  Sure, there are specail cases (Tkinter leaps to
mind) where there are no such problems, but better safe than sorry.

Peace,
  Kalle
-- 
Email: kalle@gnupung.net     | You can tune a filesystem, but you
Web: http://www.gnupung.net/ | can't tune a fish. -- man tunefs(8)
PGP fingerprint: 0C56 B171 8159 327F 1824 F5DE 74D7 80D7 BF3B B1DD
 [ Not signed due to lossage.  Blame Microsoft Outlook Express. ]