Robert Kern wrote: > Greg Ewing wrote: [about the "from xxx import *" syntax] >> Better still, don't even *mention* it to a beginner. >> They don't need to know about it. At all. Really. > > Well, the OP's use is precisely why "from xxx import *" exists: the > interactive prompt.
In that case (and, really, any time) Terry's solution is quite suitable and an excellent substitute. Even at the interactive prompt some of the dangers (mostly the potential for name collisions) of "from xxx import *" are still present. -Peter -- http://mail.python.org/mailman/listinfo/python-list