Beginner question: Logs?

Peter Hansen peter at engcorp.com
Fri Jun 3 07:27:08 EDT 2005


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



More information about the Python-list mailing list